cp's OEIS Frontend

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.

A214865 n such that n XOR 9 = n - 9.

This page as a plain text file.
%I A214865 #22 Sep 08 2022 08:46:02
%S A214865 9,11,13,15,25,27,29,31,41,43,45,47,57,59,61,63,73,75,77,79,89,91,93,
%T A214865 95,105,107,109,111,121,123,125,127,137,139,141,143,153,155,157,159,
%U A214865 169,171,173,175,185,187,189,191,201,203,205,207,217,219,221,223,233,235,237,239,249,251
%N A214865 n such that n XOR 9 = n - 9.
%H A214865 G. C. Greubel, <a href="/A214865/b214865.txt">Table of n, a(n) for n = 1..1000</a>
%H A214865 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,1,-1).
%F A214865 a(n) = 4*n + 6 + (-1)^n + 2*(-1)^((2*n+(-1)^n-1)/4) for n>=0.
%F A214865 a(n) = A016825(n+1) + A132429(n) for n>=0.
%F A214865 G.f. x*(9+2*x+2*x^2+2*x^3+x^4) / ( (1+x)*(x^2+1)*(x-1)^2 ). - _R. J. Mathar_, Mar 10 2013
%F A214865 a(n+4) = a(n) + 16. - _Alexander R. Povolotsky_, Mar 15 2013
%t A214865 CoefficientList[Series[x*(9 + 2*x + 2*x^2 + 2*x^3 + x^4)/((1 + x)*(x^2 + 1)*(x - 1)^2), {x,0,50}], x] (* _G. C. Greubel_, Feb 22 2017 *)
%o A214865 (Magma)
%o A214865 XOR := func<a, b | Seqint([ (adigs[i] + bdigs[i]) mod 2 : i in [1..n]], 2)
%o A214865        where adigs := Intseq(a, 2, n)
%o A214865        where bdigs := Intseq(b, 2, n)
%o A214865        where n := 1 + Ilog2(Max([a, b, 1]))>;
%o A214865 m:=9;
%o A214865 for n in [1 .. 500] do
%o A214865       if (XOR(n, m) eq n-m) then n; end if;
%o A214865 end for;
%o A214865 (PARI) x='x+O('x^50); Vec(x*(9+2*x+2*x^2+2*x^3+x^4) / ( (1+x)*(x^2+1)*(x-1)^2 )) \\ _G. C. Greubel_, Feb 22 2017
%Y A214865 Cf. A214863, A016825, A132429.
%K A214865 nonn,easy
%O A214865 1,1
%A A214865 _Brad Clardy_, Mar 09 2013