A340491 Number of n-digit numbers x such that rev(x^2) = rev(x)^2 and x does not contain any zero digits, where rev(x) is the digit reversal of x.
3, 6, 9, 11, 10, 7, 7, 1, 1
Offset: 1
Examples
The 7 solutions with 7 digits are 1111111, 1111112, 1111121, 1111211, 1121111, 1211111, 2111111.
Crossrefs
Programs
-
PARI
isok(k) = my(d=digits(k)); vecmin(d) && (fromdigits(Vecrev(digits(k^2))) == fromdigits(Vecrev(d))^2); a(n) = sum(k=10^(n-1), 10^n-1, isok(k)); \\ Michel Marcus, Jan 16 2021
Comments