OFFSET
1,2
COMMENTS
Also called Stanley Sequence S[1,4]. - Ralf Stephan, Jan 31 2014
REFERENCES
F. Iacobescu, 'Smarandache Partition Type and Other Sequences.' Bull. Pure Appl. Sci. 16E, 237-240, 1997.
H. Ibstedt, A Few Smarandache Sequences, Smarandache Notions Journal, Vol. 8, No. 1-2-3, 1997, 170-183.
LINKS
Eric Weisstein's World of Mathematics, Nonarithmetic Progression Sequence
FORMULA
Partial sums of Da(n), where Da(n) is defined in the PARI program.
a(n) = A004793(n) + [n is even] + [ceiling(n/2) is even]. Proof by Lawrence Sze. - Ralf Stephan, Nov 15 2004
PROG
(PARI) Da(n)=if(n<1, 1, if(n%2==0, 3*Da(n/2)+5-13*((n/2)%2)-6*((n/2)%4==2), 3)) /* Ralf Stephan */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved