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!)
A047359 Numbers that are congruent to {0, 2, 3} mod 7. 1
0, 2, 3, 7, 9, 10, 14, 16, 17, 21, 23, 24, 28, 30, 31, 35, 37, 38, 42, 44, 45, 49, 51, 52, 56, 58, 59, 63, 65, 66, 70, 72, 73, 77, 79, 80, 84, 86, 87, 91, 93, 94, 98, 100, 101, 105, 107, 108, 112, 114, 115, 119, 121, 122, 126, 128, 129, 133, 135, 136, 140 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

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

FORMULA

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

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

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

a(n) = (21*n-27-9*cos(2*n*Pi/3)+sqrt(3)*sin(2*n*Pi/3))/9.

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

MAPLE

A047359:=n->(21*n-27-9*cos(2*n*Pi/3)+sqrt(3)*sin(2*n*Pi/3))/9: seq(A047359(n), n=1..100); # Wesley Ivan Hurt, Jun 08 2016

MATHEMATICA

Select[Range[0, 150], MemberQ[{0, 2, 3}, Mod[#, 7]]&] (* Harvey P. Dale, Dec 06 2012 *)

PROG

(MAGMA) [n : n in [0..150] | n mod 7 in [0, 2, 3]]; // Wesley Ivan Hurt, Jun 08 2016

CROSSREFS

Sequence in context: A047533 A060525 A152863 * A027700 A262300 A202105

Adjacent sequences:  A047356 A047357 A047358 * A047360 A047361 A047362

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 25 06:05 EDT 2020. Contains 337335 sequences. (Running on oeis4.)