|
|
A034293
|
|
Numbers k such that 2^k does not contain the digit 2 (probably finite).
|
|
9
|
|
|
0, 2, 3, 4, 6, 12, 14, 16, 20, 22, 23, 26, 34, 35, 36, 39, 42, 46, 54, 64, 74, 83, 168
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Is 168 the last term?
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
Here is 2^168, conjecturally the largest power of 2 that does not contain a 2:
374144419156711147060143317175368453031918731001856. - N. J. A. Sloane, Feb 10 2023
|
|
MAPLE
|
isA034293 := proc(n) RETURN(not 2 in convert(2^n, base, 10)) ; end: for n from 0 to 100000 do if isA034293(n) then print(n) ; fi ; od: # R. J. Mathar, Oct 04 2007
|
|
MATHEMATICA
|
|
|
PROG
|
(Magma) [n: n in [0..1000] | not 2 in Intseq(2^n) ]; // Vincenzo Librandi, May 07 2015
(Python)
def is_A034293(n): return'2'not in str(2**n)
|
|
CROSSREFS
|
See also similar sequences listed in A035064.
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Removed keyword "fini" since it is only a conjecture that this sequence contains only finitely many terms. - Altug Alkan, May 07 2016
|
|
STATUS
|
approved
|
|
|
|