OFFSET
1,1
COMMENTS
From Robert Israel, Apr 10 2018: (Start)
If k is in the sequence, then so are 4*k and 4*k+2.
All even terms of the sequence are obtained in this way.
The odd terms of the sequence are 4*k+3 for k in A062880. (End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(i, x, d) local j, X, nX;
X:= convert(x, base, 2); nX:= nops(X);
3*4^i+add(X[j]*2*4^`if`(j<=i, j-1, j), j=1..nX)
end proc:
sort([seq(seq(seq(f(i, x, d), x=`if`(i=d-1, 0, 2^(d-2))..2^(d-1)-1), i=0..d-1), d=0..6)]); # Robert Israel, Apr 10 2018
MATHEMATICA
Select[Range[700], DigitCount[#, 4, 1]==0&&DigitCount[#, 4, 3]==1&] (* Harvey P. Dale, Jul 23 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved
