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!)
A263824 Permutation of the nonnegative integers: [6k+3, 6k+4, 6k+5, 6k, 6k+1, 6k+2, ...]. 2
3, 4, 5, 0, 1, 2, 9, 10, 11, 6, 7, 8, 15, 16, 17, 12, 13, 14, 21, 22, 23, 18, 19, 20, 27, 28, 29, 24, 25, 26, 33, 34, 35, 30, 31, 32, 39, 40, 41, 36, 37, 38, 45, 46, 47, 42, 43, 44, 51, 52, 53, 48, 49, 50, 57, 58, 59, 54, 55, 56, 63, 64, 65, 60, 61, 62, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: (3-2*x-3*x^3+4*x^4) / ((x-1)^2*(1+x^3)).
a(n) = 2*a(n-1) - a(n-2) - a(n-3) + 2*a(n-4) - a(n-5), n>4.
a(n) = n + 3*(-1)^floor(n/3).
a(n) = a(n-6) + 6 for n>5. - Tom Edgar, Oct 28 2015
From Wesley Ivan Hurt, Nov 22 2015: (Start)
a(n) = n + 3*A130151(n).
a(3n) = 3*A004442(n). (End)
Sum_{n>=0, n!=3} (-1)^n/a(n) = log(2) (A002162). - Amiram Eldar, Dec 25 2023
MAPLE
A263824:=n->n+3*(-1)^floor(n/3): seq(A263824(n), n=0..100);
MATHEMATICA
Table[n + 3 (-1)^Floor[n/3], {n, 0, 100}]
CoefficientList[Series[(3 - 2 x - 3 x^3 + 4 x^4)/((x - 1)^2 (1 + x^3)), {x, 0, 70}], x] (* Vincenzo Librandi, Nov 22 2015 *)
LinearRecurrence[{2, -1, -1, 2, -1}, {3, 4, 5, 0, 1}, 70] (* Harvey P. Dale, Jun 23 2017 *)
PROG
(Magma) [n+3*(-1)^Floor(n/3) : n in [0..100]];
(PARI) Vec((3-2*x-3*x^3+4*x^4) / ((x-1)^2*(1+x^3)) + O(x^100)) \\ Altug Alkan, Oct 28 2015
(Magma) I:=[3, 4, 5, 0, 1]; [n le 5 select I[n] else 2*Self(n-1)- Self(n-2)-Self(n-3)+2*Self(n-4)-Self(n-5): n in [1..70]]; // Vincenzo Librandi, Nov 22 2015
(PARI) A263824(n)=n+3*(-1)^(n\3) \\ M. F. Hasler, Nov 25 2015
CROSSREFS
Sequence in context: A060115 A100649 A158962 * A215747 A246667 A199066
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 27 2015
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 June 9 09:30 EDT 2024. Contains 373239 sequences. (Running on oeis4.)