OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
This sequence also seems to satisfy:
3*a(n) XOR 41*a(n) = 42*a(n);
5*a(n) XOR 35*a(n) = 38*a(n);
6*a(n) XOR 35*a(n) = 37*a(n);
7*a(n) XOR 35*a(n) = 36*a(n); etc.
MATHEMATICA
Select[Range[8300], BitXor[#, 62 #]==63 #&] (* Harvey P. Dale, Oct 31 2021 *)
PROG
(Perl)
$cnt=0;
foreach(1..8_000){
print ++$cnt, " $_\n" if ((62*$_)^$_)==63*$_;
}
# Ivan Neretin, Nov 11 2016
(PARI) isok(n) = bitxor(n, 62*n) == 63*n; \\ Michel Marcus, Nov 11 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jan 22 2006
STATUS
approved