login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047212 Numbers that are congruent to {0, 2, 4} mod 5. 21
0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40, 42, 44, 45, 47, 49, 50, 52, 54, 55, 57, 59, 60, 62, 64, 65, 67, 69, 70, 72, 74, 75, 77, 79, 80, 82, 84, 85, 87, 89, 90, 92, 94, 95, 97, 99, 100, 102, 104, 105, 107 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (1,0,1,-1).

FORMULA

a(n) = +1*a(n-1) +1*a(n-3) -1*a(n-4).

G.f.:  x^2*(2+2*x+x^2)/((1-x)^2*(1+x+x^2))   - Bruno Berselli, Mar 31 2011

a(n) = floor((5*n-3)/3). [From Gary Detlefs (gdetlefs(AT)aol.com), May 14 2011]

MATHEMATICA

Select[Range[0, 200], MemberQ[{0, 2, 4}, Mod[#, 5]] &] (* From Vladimir Joseph Stephan Orlovsky, Feb 12 2012 *)

PROG

(MAGMA) [ n : n in [0..140] | n mod 5 in [0, 2, 4] ]; - Vincenzo Librandi, Mar 31 2011

(MAGMA) &cat[ [n, n+2, n+4]: n in [0..90 by 5] ];  // Bruno Berselli, Mar 31 2011

CROSSREFS

Cf. A047209, A047211

Sequence in context: A004956 A026351 A184656 * A121347 A106829 A190228

Adjacent sequences:  A047209 A047210 A047211 * A047213 A047214 A047215

KEYWORD

nonn,changed

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 08:59 EST 2012. Contains 205903 sequences.