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!)
A047462 Numbers that are congruent to {0, 1, 4} mod 8. 3
0, 1, 4, 8, 9, 12, 16, 17, 20, 24, 25, 28, 32, 33, 36, 40, 41, 44, 48, 49, 52, 56, 57, 60, 64, 65, 68, 72, 73, 76, 80, 81, 84, 88, 89, 92, 96, 97, 100, 104, 105, 108, 112, 113, 116, 120, 121, 124, 128, 129, 132, 136, 137, 140, 144, 145, 148, 152, 153, 156 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
G.f.: x^2*(1+3*x+4*x^2)/((1-x)^2*(1+x+x^2)). [Colin Barker, May 13 2012]
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-33-3*cos(2*n*Pi/3)+5*sqrt(3)*sin(2*n*Pi/3))/9.
a(3k) = 8k-4, a(3k-1) = 8k-7, a(3k-2) = 8k-8. (End)
MAPLE
A047462:=n->(24*n-33-3*cos(2*n*Pi/3)+5*sqrt(3)*sin(2*n*Pi/3))/9: seq(A047462(n), n=1..100); # Wesley Ivan Hurt, Jun 10 2016
MATHEMATICA
Select[Range[0, 150], MemberQ[{0, 1, 4}, Mod[#, 8]] &] (* Wesley Ivan Hurt, Jun 10 2016 *)
PROG
(Magma) [n : n in [0..150] | n mod 8 in [0, 1, 4]]; // Wesley Ivan Hurt, Jun 10 2016
CROSSREFS
Sequence in context: A221865 A004753 A144794 * A020671 A171598 A259241
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 April 24 06:39 EDT 2024. Contains 371920 sequences. (Running on oeis4.)