login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A309286 a(0) = 0, a(1) = 1, and for any n > 1, a(n) = Sum_{k > 1} (-1)^k * a(floor(n/k^2)). 1
0, 1, 0, 0, 1, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, -1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -3, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,19

COMMENTS

This sequence is a signed variant of A309262.

LINKS

Rémy Sigrist, Table of n, a(n) for n = 0..10000

EXAMPLE

a(9) = a(floor(9/2^2)) - a(floor(9/3^3)) = a(2) - a(1) = 0 - 1 = -1.

MATHEMATICA

Join[{0}, Clear[a]; a[0]=0; a[1]=1; a[n_]:=a[n]=Sum[a[Floor[n/k^2]](-1)^k, {k, 2, n}]; Table[a[n], {n, 1, 100}]] (* Vincenzo Librandi, Jul 22 2019 *)

PROG

(PARI) a(n) = if (n<=1, n, sum (k=2, sqrtint(n), (-1)^k * a(n\k^2)))

CROSSREFS

Cf. A309262.

Sequence in context: A044925 A323356 A319244 * A102671 A292519 A037815

Adjacent sequences:  A309283 A309284 A309285 * A309287 A309288 A309289

KEYWORD

sign

AUTHOR

Rémy Sigrist, Jul 21 2019

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 20 03:04 EDT 2021. Contains 348099 sequences. (Running on oeis4.)