OFFSET
1,2
REFERENCES
Elena Deza and Michel Marie Deza, Figurate numbers, World Scientific Publishing (2012), page 423.
LINKS
Patrick De Geest, Squares containing at most three distinct digits, Index entries for related sequences
Hisanori Mishima, Sporadic tridigital solutions
Eric Weisstein's World of Mathematics, Square Number.
FORMULA
a(n)^2 = A030174(n). - M. F. Hasler, Nov 16 2017
MATHEMATICA
Do[ If[ Union[ Join[{1, 2, 3}, IntegerDigits[n^2] ] ] == {1, 2, 3}, Print[n] ], {n, 0, 10^9}]
PROG
(PARI) lista(nn) = for(n=1, nn, if(setminus(vecsort(digits(n^2), , 8), [1, 2, 3])==[], print1(n, ", "))) \\ Iain Fox, Nov 16 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Mar 01 2000
More terms from C. Ronaldo (aga_new_ac(AT)hotmail.com), Jan 14 2005
Offset corrected by Iain Fox, Nov 16 2017
STATUS
approved
