pentagonal=Table[n(3n-1)/2,{n,0,100000}]

hexagonal=Table[n(2n-1),{n,0,100000}]

triangular=Table[n(n+1)/2,{n,0,100000}]

Intersection [triangular, pentagonal, hexagonal]