OFFSET
1,1
COMMENTS
All the terms in this sequence, except a(1), are congruent to 1 mod 3.
After a(1), all the terms are congruent to {1, 4, 7} mod 9.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 3 is prime: 3^3 = 27; 2 + 7 = 9 = 3^2.
a(2) = 1753 is prime: 1753^3 = 5386984777; 5 + 3 + 8 + 6 + 9 + 8 + 4 + 7 + 7 + 7 = 64 = 8^2.
MAPLE
f:= n->add(d, d=convert(n^3, base, 10)):
select(t -> type(sqrt(f(t)), integer), [seq(ithprime(m), m=1..10^3)]);
MATHEMATICA
Select[Prime[Range[2000]], IntegerQ[Sqrt[Plus @@ IntegerDigits[#^3]]] &]
PROG
(PARI) forprime(p=1, 5000, if(issquare(sumdigits(p^3)), print1(p, ", ")));
(Magma) [p: p in PrimesUpTo(1000) | IsSquare(&+Intseq(p^3))];
(PARI) is(n) = ispseudoprime(n) && issquare(sumdigits(n^3)) \\ Felix Fröhlich, Aug 14 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Aug 14 2017
STATUS
approved
