login
Numbers k such that the decimal expansion of 3^k contains no 6.
1

%I #10 Sep 08 2022 08:45:31

%S 0,1,2,3,4,5,6,7,10,11,12,13,15,18,23,32,35,42,55,104

%N Numbers k such that the decimal expansion of 3^k contains no 6.

%C I conjecture that 104 is the last term.

%t Join[{0}, Select[ Range@10000, FreeQ[ IntegerDigits[3^# ], 6] &]

%o (Magma) [n: n in [0..1000] | not 6 in Intseq(3^n) ]; // _Vincenzo Librandi_, May 06 2015

%Y Cf. similar sequences listed in A131613.

%Y Cf. A007377.

%K base,fini,nonn

%O 1,3

%A _Shyam Sunder Gupta_, Sep 01 2007

%E Initial 0 added and Mathematica code adapted by _Vincenzo Librandi_, May 06 2015