The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047231 Numbers that are congruent to {0, 3, 4} mod 6. 3
0, 3, 4, 6, 9, 10, 12, 15, 16, 18, 21, 22, 24, 27, 28, 30, 33, 34, 36, 39, 40, 42, 45, 46, 48, 51, 52, 54, 57, 58, 60, 63, 64, 66, 69, 70, 72, 75, 76, 78, 81, 82, 84, 87, 88, 90, 93, 94, 96, 99, 100, 102, 105, 106, 108, 111, 112, 114, 117, 118, 120, 123, 124 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
From R. J. Mathar, Aug 05 2010: (Start)
G.f.: x^2*(3+x+2*x^2) / ( (1+x+x^2)*(x-1)^2 ).
a(n) = a(n-1) + a(n-3) - a(n-4) for n>4.
a(n) = 2*n+2-(11+A061347(n+1))/3. (End)
From Wesley Ivan Hurt, Jun 13 2016: (Start)
a(n) = (6*n-5-cos(2*n*Pi/3)-sqrt(3)*sin(2*n*Pi/3))/3.
a(3k) = 6k-2, a(3k-1) = 6k-3, a(3k-2) = 6k-6. (End)
Sum_{n>=2} (-1)^n/a(n) = log(2)/3 + (1-2/sqrt(3))*Pi/12. - Amiram Eldar, Dec 14 2021
MAPLE
A047231:=n->(6*n-5-cos(2*n*Pi/3)-sqrt(3)*sin(2*n*Pi/3))/3: seq(A047231(n), n=1..100); # Wesley Ivan Hurt, Jun 13 2016
MATHEMATICA
Select[Range[0, 600], MemberQ[{0, 3, 4}, Mod[#, 6]]&] (* Vincenzo Librandi, Jan 06 2013 *)
LinearRecurrence[{1, 0, 1, -1}, {0, 3, 4, 6}, 70] (* Harvey P. Dale, Sep 03 2017 *)
PROG
(Magma) [n: n in [0..120] | n mod 6 in [0, 3, 4]]; // Vincenzo Librandi, Jan 06 2013
CROSSREFS
Cf. A061347.
Sequence in context: A288463 A189297 A350977 * A050131 A332023 A361837
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 17:17 EDT 2024. Contains 372492 sequences. (Running on oeis4.)