The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A131955 a(n) = sum of digits of (n!! + a(n-1)). 5
 1, 3, 6, 5, 2, 5, 2, 17, 17, 23, 14, 23, 23, 23, 23, 23, 41, 41, 41, 41, 41, 50, 41, 59, 68, 59, 68, 59, 68, 86, 86, 104, 95, 95, 104, 86, 104, 86, 122, 95, 104, 113, 149, 95, 140, 95, 131, 122, 149, 140, 140, 113, 185, 149, 185, 149, 176, 194, 176, 185, 194, 194, 203 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Robert Israel, Table of n, a(n) for n = 1..10000 EXAMPLE a(4)=6+4!!=6+8=14 -> Sum_digits(14)=5. MAPLE P:=proc(n) local a, i, k, w; a:=0; for i from 1 by 1 to n do w:=0; k:=a+2^((1+2*i-cos(i*Pi))/4)*Pi^((cos(i*Pi)-1)/4)*GAMMA(1+1/2*i); while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; a:=w; print(a); od; end: P(100); # alternative: A[1]:= 1: for n from 2 to 100 do   A[n]:= convert(convert(doublefactorial(n)+A[n-1], base, 10), `+`); od: seq(A[i], i=1..100); # Robert Israel, Oct 29 2020 CROSSREFS Cf. A055263, A131954. Sequence in context: A144179 A155540 A225451 * A249281 A316169 A346525 Adjacent sequences:  A131952 A131953 A131954 * A131956 A131957 A131958 KEYWORD easy,nonn,base,look AUTHOR Paolo P. Lava and Giorgio Balzarotti, Jul 31 2007 EXTENSIONS Offset corrected by Robert Israel, Oct 29 2020 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified November 27 20:49 EST 2021. Contains 349395 sequences. (Running on oeis4.)