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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047408 Numbers that are congruent to {1, 4, 6} mod 8. 1
1, 4, 6, 9, 12, 14, 17, 20, 22, 25, 28, 30, 33, 36, 38, 41, 44, 46, 49, 52, 54, 57, 60, 62, 65, 68, 70, 73, 76, 78, 81, 84, 86, 89, 92, 94, 97, 100, 102, 105, 108, 110, 113, 116, 118, 121, 124, 126, 129, 132, 134, 137, 140, 142, 145, 148, 150, 153, 156, 158 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..60.

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

FORMULA

G.f.: x*(1+3*x+2*x^2+2*x^3)/((1+x+x^2)*(x-1)^2). - R. J. Mathar, Dec 05 2011

a(n) = 3n - 2 - floor(n/3). - Wesley Ivan Hurt, Nov 07 2013

From Wesley Ivan Hurt, Jun 10 2016: (Start)

a(n) = a(n-1) + a(n-3) - a(n-4) for n>4.

a(n) = (24*n-15-3*cos(2*n*Pi/3)-sqrt(3)*sin(2*n*Pi/3))/9.

a(3k) = 8k-2, a(3k-1) = 8k-4, a(3k-1) = 8k-7. (End)

MAPLE

A047408:=n->3*n-floor(n/3)-2; seq(A047408(k), k=1..100); # Wesley Ivan Hurt, Nov 07 2013

MATHEMATICA

Table[3n-Floor[n/3]-2, {n, 100}] (* Wesley Ivan Hurt, Nov 07 2013 *)

PROG

(MAGMA) [n : n in [0..150] | n mod 8 in [1, 4, 6]]; // Wesley Ivan Hurt, Jun 10 2016

CROSSREFS

Sequence in context: A066095 A003622 A189533 * A060644 A122550 A191407

Adjacent sequences:  A047405 A047406 A047407 * A047409 A047410 A047411

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 | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 02:01 EST 2018. Contains 317332 sequences. (Running on oeis4.)