A385515 Repdigit numbers whose square does not contain the repeated digit.
2, 3, 4, 7, 8, 9, 22, 33, 44, 77, 88, 333, 444, 3333, 33333, 44444, 88888, 333333, 3333333, 33333333, 333333333, 3333333333, 33333333333, 333333333333, 3333333333333, 33333333333333, 333333333333333, 3333333333333333, 33333333333333333, 333333333333333333
Offset: 1
Examples
22 is a term since 22^2 = 484 does not contain the digit 2.
Programs
-
Mathematica
Select[Union@ Flatten@ Table[k (10^n - 1)/9, {k, 0, 9}, {n, 18}] ,ContainsNone[IntegerDigits[#^2],IntegerDigits[#]]&] (* James C. McMahon, Jul 07 2025 *)
Formula
a(n) = A002277(n - 12), for n >= 18.
Comments