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!)
A047438 Numbers that are congruent to {1, 5, 6} mod 8. 2
1, 5, 6, 9, 13, 14, 17, 21, 22, 25, 29, 30, 33, 37, 38, 41, 45, 46, 49, 53, 54, 57, 61, 62, 65, 69, 70, 73, 77, 78, 81, 85, 86, 89, 93, 94, 97, 101, 102, 105, 109, 110, 113, 117, 118, 121, 125, 126, 129, 133, 134, 137, 141, 142, 145, 149, 150, 153, 157, 158 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f.: x*(1+4*x+x^2+2*x^3)/((1+x+x^2)*(x-1)^2). - R. J. Mathar, Dec 07 2011
From Wesley Ivan Hurt, Jun 10 2016: (Start)
a(n) = a(n-1) + a(n-3) - a(n-4) for n>4.
a(n) = 2*(12*n-6-3*cos(2*n*Pi/3)-2*sqrt(3)*sin(2*n*Pi/3))/9.
a(3k) = 8k-2, a(3k-1) = 8k-3, a(3k-2) = 8k-7. (End)
MAPLE
A047438:=n->2*(12*n-6-3*cos(2*n*Pi/3)-2*sqrt(3)*sin(2*n*Pi/3))/9: seq(A047438(n), n=1..100); # Wesley Ivan Hurt, Jun 10 2016
MATHEMATICA
Select[Range[0, 150], MemberQ[{1, 5, 6}, Mod[#, 8]] &] (* Wesley Ivan Hurt, Jun 10 2016 *)
PROG
(Magma) [n : n in [0..150] | n mod 8 in [1, 5, 6]]; // Wesley Ivan Hurt, Jun 10 2016
CROSSREFS
Sequence in context: A074185 A242733 A195928 * A341301 A218735 A301658
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 March 28 05:39 EDT 2024. Contains 371235 sequences. (Running on oeis4.)