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 A004444 #34 Sep 08 2022 08:44:33 %S A004444 3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12,19,18,17,16,23,22,21,20,27,26, %T A004444 25,24,31,30,29,28,35,34,33,32,39,38,37,36,43,42,41,40,47,46,45,44,51, %U A004444 50,49,48,55,54,53,52,59,58,57,56,63,62,61,60,67,66,65,64,71 %N A004444 Nimsum n + 3. %C A004444 The same as A120634 except for first 3 terms. - _Pietro Battiston_, Jan 19 2008 %C A004444 Permutation of the nonnegative integers. - _Wesley Ivan Hurt_, Apr 06 2016 %D A004444 E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982, see p. 60. %D A004444 J. H. Conway, On Numbers and Games. Academic Press, NY, 1976, pp. 51-53. %H A004444 <a href="/index/Ni#Nimsums">Index entries for sequences related to Nim-sums</a> %H A004444 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the nonnegative integers</a> %H A004444 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,1,-1). %F A004444 G.f.: (4*x^4-x^3-x^2-x+3)/((x-1)^2*(x+1)*(x^2+1)). - _Ralf Stephan_, Nov 01 2003 %F A004444 a(n) = n + (-1)^n + 2*(-1)^floor(n/2). - Mitchell Harris, Jan 10 2005 %F A004444 From _Wesley Ivan Hurt_, Apr 06 2016: (Start) %F A004444 a(n) = a(n-1) + a(n-4) - a(n-5) for n>4. %F A004444 a(n) = n + (-1)^n + 2*(-1)^((2*n-1+(-1)^n)/4). %F A004444 a(n) = A004442(A004443(n)) = A004443(A004442(n)). %F A004444 a(a(n)) = n; n+a(n) = A004442(n) + A004443(n). (End) %F A004444 a(n) = n XOR 3. - _Falk Hüffner_, Jan 23 2022 %p A004444 A004444:=n->n+(-1)^n+2*(-1)^floor(n/2): seq(A004444(n), n=0..50); # _Wesley Ivan Hurt_, Apr 06 2016 %t A004444 CoefficientList[Series[(4x^4-x^3-x^2-x+3)/((x-1)^2(x+1) (x^2+1)), {x,0,70}],x] (* _Harvey P. Dale_, Mar 24 2011 *) %t A004444 Table[n + (-1)^n + 2 (-1)^Floor[n/2], {n, 0, 100}] (* _Wesley Ivan Hurt_, Apr 06 2016 *) %o A004444 (Magma) [n + (-1)^n + 2*(-1)^Floor(n/2): n in [0..100]]; // _Wesley Ivan Hurt_, Apr 06 2016 %o A004444 (PARI) Vec((4*x^4-x^3-x^2-x+3)/((x-1)^2*(x+1)*(x^2+1)) + O(x^90)) \\ _Michel Marcus_, Apr 06 2016 %o A004444 (Python) %o A004444 def a(n): return n^3 %o A004444 print([a(n) for n in range(69)]) # _Michael S. Branicky_, Jan 23 2022 %Y A004444 Cf. A004442 (nimsum n+1), A004443 (nimsum n+2), A120634. %K A004444 nonn,easy %O A004444 0,1 %A A004444 _N. J. A. Sloane_ %E A004444 More terms from _Michael S. Branicky_, Jan 23 2022