OFFSET
1,1
FORMULA
a(n) = sum_{j=1..n} A082924(j).
EXAMPLE
For n = 5, sum(3+3+4+2+6) = 18 is the 5th entry of the sequence.
PROG
(PARI) crazy1(n) = { s=0; tmp; for(x=1, n, if(x%2==0, y=x/2, y=x*3); if(isprime(x), y=x+1); s=s+y; \ print1(y" ") print1(s" "); tmp=s1; s1=s2; s2=tmp; ); print(); print(s1/s2"="s1/s2+0.0) } /* note that s1 and s2 do not have any meaning in that context .. R. J. Mathar, Oct 07 2011 */
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 26 2003
STATUS
approved