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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047399 Numbers that are congruent to {0, 3, 6} mod 8. 3
0, 3, 6, 8, 11, 14, 16, 19, 22, 24, 27, 30, 32, 35, 38, 40, 43, 46, 48, 51, 54, 56, 59, 62, 64, 67, 70, 72, 75, 78, 80, 83, 86, 88, 91, 94, 96, 99, 102, 104, 107, 110, 112, 115, 118, 120, 123, 126, 128, 131, 134, 136 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

LINKS

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

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)

a(n) = floor((8*n-6)/3) [From Gary Detlefs, Mar 07 2010]

a(n) = 3*n-floor(n/3) [From Gary Detlefs, Jul 09 2011]

G.f. x^2*(3+3*x+2*x^2) / ( (1+x+x^2)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011

MAPLE

seq(floor((8*n-6)/3), n=1..52); [From Gary Detlefs, Mar 07 2010]

MATHEMATICA

f[n_] := 3 n - Floor[n/3]; Array[f, 52, 0] (* Or *)

Cases[ Range[0, 136], n_ /; MatchQ[ Mod[n, 8], 0 | 3 | 6]] (* Robert G. Wilson v, July 10 2011 *)

PROG

(MAGMA) [Floor((8*n-6)/3): n in [1..60]]; Vincenzo Librandi, Jul 11 2011

CROSSREFS

Sequence in context: A004957 A026352 A198084 * A057349 A087068 A022851

Adjacent sequences:  A047396 A047397 A047398 * A047400 A047401 A047402

KEYWORD

nonn,easy

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 17 05:54 EST 2012. Contains 205985 sequences.