A267768 Numbers whose base-8 representation is a square when read in base 10.
0, 1, 4, 14, 21, 30, 52, 64, 81, 100, 149, 174, 212, 241, 256, 289, 382, 405, 446, 532, 622, 661, 804, 849, 896, 1012, 1045, 1102, 1220, 1281, 1344, 1409, 1476, 1557, 1630, 1780, 1920, 2001, 2197, 2286, 2452, 2545, 2593, 2878, 2965, 3070, 3233, 3328, 3441, 3540, 3630, 3733, 4068, 4096
Offset: 1
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Magma
[n: n in [0..10^4] | IsSquare(Seqint(Intseq(n, 8)))]; // Vincenzo Librandi, Dec 28 2016
-
Mathematica
Select[Range[0, 2 10^4], IntegerQ@Sqrt@FromDigits@IntegerDigits[#, 8] &] (* Vincenzo Librandi, Dec 28 2016 *)
-
PARI
is(n,b=8,c=10)=issquare(subst(Pol(digits(n,b)),x,c))
-
Python
A267768_list = [int(s, 8) for s in (str(i**2) for i in range(10**6)) if max(s) < '8'] # Chai Wah Wu, Jan 20 2016
Comments