A275028 Squares whose digital rotation is also a square.
1, 121, 196, 529, 625, 961, 6889, 10201, 69169, 1002001, 1022121, 1212201, 5221225, 100020001, 100220121, 109181601, 121022001, 522808225, 602555209, 10000200001, 10002200121, 10020210201, 10201202001, 12100220001, 62188888129, 1000002000001
Offset: 1
Examples
961 becomes 196 under such a rotation.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..164
- Prime Curios, 31
Crossrefs
Cf. A178316.
Programs
-
Mathematica
Select[Range[10^6]^2, If[Or[IntersectingQ[#, {3, 4, 7}], Last@# == 0], False, IntegerQ@ Sqrt@ FromDigits[Reverse@ # /. {6 -> 9, 9 -> 6}]] &@ IntegerDigits@ # &] (* Michael De Vlieger, Nov 14 2016 *)
-
Python
from itertools import count, islice from sympy.ntheory.primetest import is_square def A275028_gen(): # generator of terms r, t = ''.maketrans('69','96'), set('0125689') for l in count(1): if l%10: m = l**2 if set(s:=str(m)) <= t and is_square(int(s[::-1].translate(r))): yield m A275028_list = list(islice(A275028_gen(),10)) # Chai Wah Wu, Apr 09 2024
Comments