|
|
A225429
|
|
Number of n-digit numbers x such that the digits of x^2 occur with frequency 2.
|
|
1
|
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
After a(10), all terms are 0.
|
|
LINKS
|
|
|
EXAMPLE
|
The only two-digit number is 88, whose square is 7744.
|
|
MATHEMATICA
|
cnt = 0; t2 = Table[x = Floor[Sqrt[10] * 10^(n-1)]; While[x < 10^n, If[Union[Last[Transpose[Tally[IntegerDigits[x^2]]]]] == {2}, cnt++]; x++]; cnt, {n, 6}]; Join[{0}, Differences[t2]]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|