OFFSET
1,2
COMMENTS
Given any number in the sequence, if you remove one or more digits from the beginning you always get another number in the sequence. This makes it easy to find higher terms -- just take an existing term and try adding a digit (with perhaps additional 0's) at the beginning. For example, to 6251 prepend 5 to get a 5-digit term, or 40 or 90 to get a 6-digit term.
LINKS
Cliff Pickover, Centered Hexamorphic Numbers.
FORMULA
10^(d-1) <= n < 10^d; 3n(n-1)+1 == n mod 10^d
EXAMPLE
417 is in the sequence because if n=417, 3n(n-1)+1=520417, which ends in 417.
PROG
(PARI) isok(n) = {my(m = 3*n*(n-1)+1); (m - n) % 10^#Str(n) == 0; } \\ Michel Marcus, Jun 21 2018
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Robert Munafo, May 07 2004
EXTENSIONS
Name changed by Robert Dawson, Jun 20 2018
STATUS
approved