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!)
A271047 A prime number sieve defined by the recurrence: T(n, k) = If n = k then 1 else if k divides n then -Sum_{i=k+1..n} T(n, i) else T(n,k) = 0. 0
1, -1, 1, -1, 0, 1, 0, -1, 0, 1, -1, 0, 0, 0, 1, 0, 0, -1, 0, 0, 1, -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
Same negative sum as in the recurrence for the Möbius function except that it is applied at all the divisors and not only in the first column. The table therefore acts as a prime number sieve giving the characteristic sequence of prime numbers in the first column. Row sums are 1,0,0,0,0,0,0,0,0,...
LINKS
FORMULA
T(n, k) = If n = k then 1 else if k divides n then -Sum_{i=k+1..n} T(n, i) else T(n,k) = 0.
EXAMPLE
{
{1},
{-1, 1},
{-1, 0, 1},
{0, -1, 0, 1},
{-1, 0, 0, 0, 1},
{0, 0, -1, 0, 0, 1},
{-1, 0, 0, 0, 0, 0, 1},
{0, 0, 0, -1, 0, 0, 0, 1},
{0, 0, -1, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, -1, 0, 0, 0, 0, 1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 1}
}
MATHEMATICA
(* recurrence *) Clear[t, n, k, nn]; nn = 12; t[n_, k_] := t[n, k] = If[n == k, 1, If[Mod[n, k] == 0, -Sum[t[n, i], {i, k + 1, n}], 0]]; Flatten[Table[Table[t[n, k], {k, 1, n}], {n, 1, nn}]]
CROSSREFS
Sequence in context: A115524 A370122 A117198 * A054525 A174852 A341517
KEYWORD
sign
AUTHOR
Mats Granvik, Mar 29 2016
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 May 5 20:30 EDT 2024. Contains 372287 sequences. (Running on oeis4.)