|
|
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Binomial coefficient predictors in both bases 2 and 3 (for definition, see paper in link).
Next term is > 5*10^300, if it exists.
|
|
LINKS
|
|
|
MATHEMATICA
|
aQ[n_]:= DigitCount[n, 2, 0] < 2 && DigitCount[n, 3, 0] == 0 && DigitCount[n, 3, 1] < 2; Select[Range[1000], aQ] (* Amiram Eldar, Dec 10 2018 *)
|
|
PROG
|
(PARI) isok2(n) = my(b=binary(n)); #select(x->(x==0), b) <= 1; \\ A089633
isok3(n) = my(d=digits(n, 3)); (#select(x->(x==0), d) == 0) && (#select(x->(x==1), d) <= 1); \\ A188341
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|