A226353 Largest integer k in base n whose squared digits sum to sqrt(k).
1, 49, 169, 36, 1, 1, 2601, 1089, 1, 8836, 33489, 44100, 1, 149769, 128164, 96721, 1, 156816, 1225, 40804, 12321, 831744, 839056, 1149184, 1737124, 3655744, 407044, 1890625, 2208196, 1089, 1, 1466521, 6125625, 2235025, 2832489, 1, 3759721, 6885376, 8844676
Offset: 2
Examples
In base 8, the four solutions are the values {1,16,256,2601}, which are written as {1,20,400,5051} in base 8 and sqrt(1) = 1 = 1^2 sqrt(16) = 4 = 2^2+0^2 sqrt(256) = 16 = 4^2+0^2+0^2 sqrt(2601)= 51 = 5^2+0^2+5^2+1^2
Links
- Christian N. K. Anderson, Table of n, a(n) for n = 2..1000
- Christian N. K. Anderson, Table of base, all solutions in base 10, and all solutions in base n for bases 2 to 1000.
Crossrefs
Programs
-
R
inbase=function(n,b) { x=c(); while(n>=b) { x=c(n%%b,x); n=floor(n/b) }; c(n,x) } for(n in 2:50) cat("Base",n,":",which(sapply((1:(4.7*n^2))^2,function(x) sum(inbase(x,n)^2)==sqrt(x)))^2,"\n")
Comments