A214863 Numbers n such that n XOR 11 = n - 11.
11, 15, 27, 31, 43, 47, 59, 63, 75, 79, 91, 95, 107, 111, 123, 127, 139, 143, 155, 159, 171, 175, 187, 191, 203, 207, 219, 223, 235, 239, 251, 255, 267, 271, 283, 287, 299, 303, 315, 319, 331, 335, 347, 351, 363
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
Crossrefs
Programs
-
Magma
XOR := func; m:=11; for n in [1 .. 500] do if (XOR(n, m) eq n-m) then n; end if; end for;
-
Mathematica
Select[Range[400],BitXor[#,11]==#-11&] (* or *) LinearRecurrence[{1,1,-1},{11,15,27},50] (* Harvey P. Dale, Jun 05 2021 *)
Formula
a(n)= 1+8*n-2*(-1)^n.
G.f. x*(11+4*x+x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Mar 10 2013
Comments