This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A263824 #26 Aug 25 2025 10:23:18 %S A263824 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, %T A263824 29,24,25,26,33,34,35,30,31,32,39,40,41,36,37,38,45,46,47,42,43,44,51, %U A263824 52,53,48,49,50,57,58,59,54,55,56,63,64,65,60,61,62,69 %N A263824 Permutation of the nonnegative integers: [6k+3, 6k+4, 6k+5, 6k, 6k+1, 6k+2, ...]. %H A263824 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (2,-1,-1,2,-1). %H A263824 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>. %F A263824 G.f.: (3-2*x-3*x^3+4*x^4) / ((x-1)^2*(1+x^3)). %F A263824 a(n) = 2*a(n-1) - a(n-2) - a(n-3) + 2*a(n-4) - a(n-5), n>4. %F A263824 a(n) = n + 3*(-1)^floor(n/3). %F A263824 a(n) = a(n-6) + 6 for n>5. - _Tom Edgar_, Oct 28 2015 %F A263824 From _Wesley Ivan Hurt_, Nov 22 2015: (Start) %F A263824 a(n) = n + 3*A130151(n). %F A263824 a(3n) = 3*A004442(n). (End) %F A263824 Sum_{n>=0, n!=3} (-1)^n/a(n) = log(2) (A002162). - _Amiram Eldar_, Dec 25 2023 %F A263824 E.g.f.: exp(-x) + x*exp(x) + 2*exp(x/2)*(cos(sqrt(3)*x/2) + sqrt(3)*sin(sqrt(3)*x/2)). - _Stefano Spezia_, Aug 25 2025 %p A263824 A263824:=n->n+3*(-1)^floor(n/3): seq(A263824(n), n=0..100); %t A263824 Table[n + 3 (-1)^Floor[n/3], {n, 0, 100}] %t A263824 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 *) %t A263824 LinearRecurrence[{2,-1,-1,2,-1},{3,4,5,0,1},70] (* _Harvey P. Dale_, Jun 23 2017 *) %o A263824 (Magma) [n+3*(-1)^Floor(n/3) : n in [0..100]]; %o A263824 (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 %o A263824 (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 %o A263824 (PARI) A263824(n)=n+3*(-1)^(n\3) \\ _M. F. Hasler_, Nov 25 2015 %Y A263824 Cf. A002162, A004442, A130151, A279318. %K A263824 nonn,easy,changed %O A263824 0,1 %A A263824 _Wesley Ivan Hurt_, Oct 27 2015