login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A167754 a(1)=1 then a(n)=(-1)*sum(k=1,n-1,(-1)^a(k)*floor(n/k)) 0
1, 2, 2, 1, 3, 3, 5, 7, 8, 8, 8, 8, 8, 8, 8, 9, 11, 11, 13, 15, 17, 17, 19, 21, 24, 22, 20, 20, 20, 18, 18, 20, 18, 18, 20, 19, 21, 23, 23, 27, 29, 31, 33, 35, 35, 37, 39, 43, 46, 44, 44, 42, 42, 40, 40, 40, 40, 38, 38, 36, 36, 34, 34, 35, 37, 37, 39, 41, 43, 43, 45, 49, 51, 53, 53 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
PROG
(PARI) {an=vector(1000); }{a(n)=if(n<0, 0, an[n]); }{an[1]=1; }{for(n=2, 1000, an[n]=-sum(k=1, n-1, (-1)^a(k)*floor(n/k))}
CROSSREFS
Sequence in context: A117894 A177762 A109380 * A011020 A181512 A076019
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Nov 10 2009
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 13:41 EDT 2024. Contains 371957 sequences. (Running on oeis4.)