OFFSET
0,1
COMMENTS
a(0), a(1), a(5), a(6), a(7) and a(11) are primes. Are there any more?
FORMULA
a(n) = ~4.5*A057755. - Robert G. Wilson v, Jul 02 2005
EXAMPLE
a(5)=59 because 2^(2^5) + 1 = 4294967297 and the sum of those decimal digits is 59.
MAPLE
a:=proc(n) local nn, z: nn:=convert(2^(2^n)+1, base, 10): z:=nops(nn): add(nn[j], j=1..z) end: seq(a(n), n=0..22); # Emeric Deutsch
MATHEMATICA
f[n_] := Plus @@ IntegerDigits[2^(2^n)] + 1; Table[ f[n], {n, 0, 27}] (* Robert G. Wilson v, Jul 02 2005 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Jun 29 2005
EXTENSIONS
More terms from Emeric Deutsch and Robert G. Wilson v, Jul 02 2005
STATUS
approved