Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A348956 a(0) = 1; a(n) = Sum_{d|n, d < n} (-1)^(n/d + 1) * a(d - 1). 6
1, 0, -1, 1, -1, 1, 0, 1, -2, 0, 0, 1, 0, 1, -1, -1, -3, 1, 3, 1, 1, 0, -1, 1, -2, 0, -1, -2, -1, 1, 3, 1, -2, 0, 2, 0, 2, 1, -4, 0, -1, 1, 1, 1, 0, -4, 0, 1, -6, 1, 2, -3, 0, 1, 5, 0, 0, 3, 0, 1, 3, 1, -4, -1, -3, 0, 3, 1, 3, -1, -1, 1, 0, 1, -3, -4, -4, 1, 5, 1, -4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
LINKS
FORMULA
G.f. A(x) satisfies: A(x) = 1 - x^2 * A(x^2) + x^3 * A(x^3) - x^4 * A(x^4) + ...
MATHEMATICA
a[0] = 1; a[n_] := a[n] = Sum[If[d < n, (-1)^(n/d + 1) a[d - 1], 0], {d, Divisors[n]}]; Table[a[n], {n, 0, 80}]
nmax = 80; A[_] = 0; Do[A[x_] = 1 - Sum[(-x)^k A[x^k], {k, 2, nmax}] + O[x]^(nmax + 1) //Normal, nmax + 1]; CoefficientList[A[x], x]
PROG
(PARI) A348956(n) = if(!n, 1, sumdiv(n, d, if(d<n, A348956(d-1)*(-1)^(1 + (n/d)), 0))); \\ Antti Karttunen, Nov 05 2021
CROSSREFS
Sequence in context: A324967 A320332 A358007 * A324868 A363622 A287066
KEYWORD
sign,look
AUTHOR
Ilya Gutkovskiy, Nov 04 2021
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 July 19 00:30 EDT 2024. Contains 374388 sequences. (Running on oeis4.)