OFFSET
1,2
COMMENTS
a(n) = number of terms of A269164 <= n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8192
FORMULA
Other identities. For all n >= 1:
a(A269164(n)) = n.
MATHEMATICA
terms = 100; Clear[f]; f[max_] := f[max] = (s = Sort[Table[BitXor[n, BitOr[ 2 n, 4 n]], {n, 0, max}]]; Complement[Range[Last[s]], s][[1 ;; terms]]); f[terms]; f[max = 2 terms]; While[Print[max]; f[max] != f[max/2], max = 2 max]; A269164 = f[max]; a[n_] := Count[A269164, k_ /; k <= n]; Table[ a[n], {n, 1, Length[A269164]}] (* Jean-François Alcover, Feb 23 2016 *)
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 21 2016
STATUS
approved