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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047465 Numbers that are congruent to {1, 2, 4} mod 8. 1
1, 2, 4, 9, 10, 12, 17, 18, 20, 25, 26, 28, 33, 34, 36, 41, 42, 44, 49, 50, 52, 57, 58, 60, 65, 66, 68, 73, 74, 76, 81, 82, 84, 89, 90, 92, 97, 98, 100, 105, 106, 108, 113, 114, 116, 121, 122, 124, 129, 130, 132, 137 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

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

FORMULA

G.f.: x*(1+x+2*x^2+4*x^3)/((1-x)^2*(1+x+x^2)). [Colin Barker, May 14 2012]

a(n) = a(n-1) + a(n-3) - a(n-4). Vincenzo Librandi, May 16 2012

MATHEMATICA

Select[Range[0, 300], MemberQ[{1, 2, 4}, Mod[#, 8]]&] (* Vincenzo Librandi, May 16 2012 *)

PROG

(MAGMA) I:=[1, 2, 4, 9]; [n le 4 select I[n] else Self(n-1)+Self(n-3)-Self(n-4): n in [1..70]]; // Vincenzo Librandi, May 16 2012

CROSSREFS

Sequence in context: A076661 A072583 A178488 * A002258 A191766 A026602

Adjacent sequences:  A047462 A047463 A047464 * A047466 A047467 A047468

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

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 May 22 23:20 EDT 2013. Contains 225585 sequences.