cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A129980 Sum of the digits of the sum of n!!, with n>=0.

Original entry on oeis.org

1, 2, 4, 7, 6, 3, 15, 12, 18, 9, 15, 24, 24, 33, 24, 33, 24, 33, 24, 51, 42, 51, 33, 51, 69, 51, 60, 69, 60, 87, 60, 60, 87, 105, 87, 87, 105, 87, 87, 105, 114, 105, 96, 141, 123, 123, 159, 150, 159, 150, 141, 141, 132, 168, 159, 150, 177, 159, 159, 168, 195, 186, 195
Offset: 0

Views

Author

Keywords

Examples

			0!!=1
1!!=1 -> 1+1=2
2!!=2 -> 2+2=4
3!!=3 -> 4+3=7
4!!=8 -> 7+8=15 -> 1+5=6
5!!=15 -> 15+15=30 -> 3+0=3
		

Programs

  • Maple
    P:=proc(n) local i,j,k,w,sf; sf:=1; for i from 0 by 1 to n do k:=i; w:=i-2; while w>0 do k:=k*w; w:=w-2; od; sf:=sf+k; w:=0; k:=sf; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; print(w); od; end: P(100);