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!)
A190621 a(n) = n if n is not divisible by 4, otherwise 0. 3
0, 1, 2, 3, 0, 5, 6, 7, 0, 9, 10, 11, 0, 13, 14, 15, 0, 17, 18, 19, 0, 21, 22, 23, 0, 25, 26, 27, 0, 29, 30, 31, 0, 33, 34, 35, 0, 37, 38, 39, 0, 41, 42, 43, 0, 45, 46, 47, 0, 49, 50, 51, 0, 53, 54, 55, 0, 57, 58, 59, 0, 61, 62, 63, 0, 65, 66, 67, 0, 69, 70, 71, 0, 73, 74, 75, 0, 77, 78, 79, 0, 81, 82, 83, 0, 85, 86 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

The sequence is multiplicative.

REFERENCES

J. M. Borwein, D. H. Bailey and R. Girgensohn, Experimentation in Mathematics, A K Peters, Ltd., Natick, MA, 2004. x+357 pp. See p. 195.

LINKS

Table of n, a(n) for n=0..86.

Index entries for linear recurrences with constant coefficients, signature (0,0,0,2,0,0,0,-1)

FORMULA

a(n) = n * A166486(n) = n * signum(n mod 4).

G.f.: (x + 2*x^2 + 3*x^3 + 3*x^5 + 2*x^6 + x^7)/(1 - 2*x^4 + x^8). - Robert Israel, Jan 13 2020

MAPLE

seq(op([0, i, i+1, i+2]), i=1..100, 4); # Robert Israel, Jan 13 2020

MATHEMATICA

Table[If[Divisible[n, 4], 0, n], {n, 0, 90}] (* Harvey P. Dale, Jan 04 2019 *)

PROG

(MAGMA) [n mod 4 ne 0 select n else 0:n in [0..86]]; // Marius A. Burtea, Jan 13 2020

CROSSREFS

Cf. A008586, A057427, A166486, A046897 (Mobius Trans.).

Sequence in context: A055615 A243059 A332845 * A325314 A322953 A049268

Adjacent sequences:  A190618 A190619 A190620 * A190622 A190623 A190624

KEYWORD

nonn,mult

AUTHOR

N. J. A. Sloane, May 14 2011

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 April 19 09:52 EDT 2021. Contains 343110 sequences. (Running on oeis4.)