OFFSET
1,2
REFERENCES
D. Wells, The Penguin Dictionary of Curious and Interesting Numbers, Penguin Book, p. 104.
C. Pickover, Computers and Imagination, 1991.
C. A. Pickover, Hexamorphic numbers, in Hexagonal cats Ch. 63 in Wonders of Numbers: Adventures in Mathematics, Mind, and Meaning, Oxford, England: Oxford University Press, pp. 154, 2001.
EXAMPLE
45 is included because it is the 5th hexagonal number and it ends in 5.
MATHEMATICA
Select[Array[{PolygonalNumber[6, #], #} &, 10^6], FromDigits[Take[IntegerDigits[#], -IntegerLength@ #2]] == #2 & @@ # &][[All, 1]] (* Michael De Vlieger, Jun 30 2018 *)
PROG
(PARI) lista(nn) = {for (n=1, nn, m = n*(2*n-1); if ((m - n) % 10^#Str(n) == 0, print1(m, ", ")); ); } \\ Michel Marcus, Sep 25 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Jun 15 1999
Name corrected by Robert Dawson, Jun 20 2018
STATUS
approved