OFFSET
1,1
COMMENTS
a(n) is prime for n = 7, 8, 19, 24, 26, ... a(n) is semiprime for n = 1, 2, 3, 6, 13, 18, 22, 23, ... a(n) is a perfect power for n = 1, 4, 18, ...
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{i=1..n} A000796(i)^2.
EXAMPLE
a(1) = 3^2 = 9,
a(2) = 3^2 + 1^2 = 10,
a(3) = 3^2 + 1^2 + 4^2 = 26,
a(4) = 3^2 + 1^2 + 4^2 + 1^2 = 27,
a(5) = 3^2 + 1^2 + 4^2 + 1^2 + 5^2 = 52,
a(6) = 3^2 + 1^2 + 4^2 + 1^2 + 5^2 + 9^2 = 133,
a(7) = 3^2 + 1^2 + 4^2 + 1^2 + 5^2 + 9^2 + 2^2 = 137, which is prime.
MAPLE
Digits := 120 ;
A000796 := proc(n) floor(Pi*10^(n-1)) ; % mod 10 ; end proc:
seq(A111033(n), n=1..120) ; # R. J. Mathar, Dec 21 2010
MATHEMATICA
Accumulate[RealDigits[Pi, 10, 50][[1]]^2] (* Harvey P. Dale, Jul 18 2021 *)
PROG
(Sage) A111033 = lambda n: sum(d**2 for d in floor(pi*10**(n-1)).digits()) # D. S. McNeil Dec 22 2010
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Oct 05 2005
EXTENSIONS
More terms from Vincenzo Librandi, Dec 21 2010
STATUS
approved