A340164 Rotationally ambigrammatic square numbers with no trailing zeros.
0, 1, 9, 16, 81, 169, 196, 961, 1089, 1681, 6889, 9801, 10609, 10816, 11881, 19881, 61009, 69169, 69696, 80089, 90601, 91809, 110889, 160801, 190096, 190969, 198916, 199809, 609961, 660969, 698896, 811801, 896809, 900601, 910116, 919681, 998001, 1006009
Offset: 1
Links
- Wikipedia, Ambigram
Programs
-
Mathematica
Select[Range[0, 1000], (# == 0 || ! Divisible[#, 10]) && AllTrue[IntegerDigits[#^2], MemberQ[{0, 1, 6, 8, 9}, #1] &] &]^2 (* Amiram Eldar, Dec 30 2020 *)
-
PARI
isra(n) = (n%10) && (!setminus(Set(Vec(Str(n))), Vec("01689"))) || !n; \\ A045574 isok(n) = issquare(n) && isra(n); \\ Michel Marcus, Dec 30 2020
Formula
a(n) = A339996(n)^2.
Comments