The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A047478 Numbers that are congruent to {1, 5, 7} mod 8. 1
 1, 5, 7, 9, 13, 15, 17, 21, 23, 25, 29, 31, 33, 37, 39, 41, 45, 47, 49, 53, 55, 57, 61, 63, 65, 69, 71, 73, 77, 79, 81, 85, 87, 89, 93, 95, 97, 101, 103, 105, 109, 111, 113, 117, 119, 121, 125, 127, 129, 133, 135, 137, 141, 143, 145, 149, 151, 153, 157, 159 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..1000 Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1). FORMULA G.f.: x*(1+4*x+2*x^2+x^3)/((1-x)^2*(1+x+x^2)). [Colin Barker, May 14 2012] a(n) = a(n-1) + a(n-3) - a(n-4) for n>4. - Vincenzo Librandi, May 16 2012 From Wesley Ivan Hurt, Jun 10 2016: (Start) a(n) = (24*n-9-4*sqrt(3)*sin(2*n*Pi/3))/9. a(3k) = 8k-1, a(3k-1) = 8k-3, a(3k-2) = 8k-7. (End) MAPLE A047478:=n->(24*n-9-4*sqrt(3)*sin(2*n*Pi/3))/9: seq(A047478(n), n=1..100); # Wesley Ivan Hurt, Jun 10 2016 MATHEMATICA Select[Range[0, 300], MemberQ[{1, 5, 7}, Mod[#, 8]]&] (* Vincenzo Librandi, May 16 2012 *) PROG (MAGMA) I:=[1, 5, 7, 9]; [n le 4 select I[n] else Self(n-1)+Self(n-3)-Self(n-4): n in [1..70]]; // Vincenzo Librandi, May 16 2012 CROSSREFS Sequence in context: A251627 A128161 A141106 * A048974 A089193 A302482 Adjacent sequences:  A047475 A047476 A047477 * A047479 A047480 A047481 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 9 20:59 EDT 2021. Contains 343746 sequences. (Running on oeis4.)