login
A030175
When squared gives number composed of digits {1,2,3}.
9
1, 11, 111, 36361, 363639, 461761, 3636361, 34815389, 362397739, 176412364139, 57637950363639, 3497458093147239, 56843832676142723489, 557963558954625926861
OFFSET
1,2
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
Cf. A136808, A136809, ..., A137147: n and n^2 have digits {...}.
Cf. A277959^2 = A277946 and A277960^2 = A277947: squares whose largest digit is 2 resp. 3.
Sequence in context: A131293 A108047 A144784 * A263805 A058949 A378022
KEYWORD
nonn,base
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