OFFSET
2,3
COMMENTS
All fixed points in base n have at most 5 digits. Proof: In order to be a fixed point, a number with d digits in base n must meet the condition n^d <= d*(n-1)^4, which is only possible for d < 5.
For 5-digit numbers vwxyz in base n, only numbers where v*n^4 + n^3 - 1 <= v^4 + 3*(n-1)^4 or v*n^4 + n^4 - 1 <= v^4 + 4*(n-1)^4 are possible fixed points. v <= 2 for n <= 250.
LINKS
Christian N. K. Anderson, Table of n, a(n) for n = 2..250
Christian N. K. Anderson, Table of base, largest fixed point, number of fixed points, and a list of all fixed points in base 10 and base n for n = 1..250
EXAMPLE
The fixed points in base 8 are {1,16,17,256,257,272,273}, because in base 8, these are written as {1,20,21,400,401,420,421} and 1^4 = 1, 2^4 + 0^4 = 16, 2^4 + 1^4 = 17, 4^4 + 0^4 + 0^4 = 256, etc. The largest of these is 273 = a(8).
PROG
(R) for(b in 2:50) {
fp=c()
for(w in 1:b-1) for(x in 1:b-1) if((v1=w^4+x^4)<=(v2=w*b^3+x*b^2))
for(y in 1:b-1) if((u1=v1+y^4)<=(u2=v2+y*b) & u1+b^4>u2+b-1) {
z=which(u1+(1:b-1)^4==u2+(1:b-1))-1
if(length(z)) fp=c(fp, u2+z)
}
cat("Base", b, ":", fp[-1], "\n")
}
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Kevin L. Schwartz and Christian N. K. Anderson, May 24 2013
STATUS
approved