A305934 Powers of 3 that have exactly one digit '0' in base 10.
59049, 14348907, 43046721, 129140163, 387420489, 3486784401, 847288609443, 68630377364883, 328256967394537077627, 26588814358957503287787, 717897987691852588770249, 6461081889226673298932241, 1144561273430837494885949696427, 22528399544939174411840147874772641, 67585198634817523235520443624317923
Offset: 1
Crossrefs
Programs
-
Mathematica
Select[3^Range[120], DigitCount[#, 10, 0] == 1 &] (* Michael De Vlieger, Jul 01 2018 *)
-
PARI
for(n=1,99, #select(t->!t,digits(3^n))==1&& print1(3^n","))
Formula
a(n) = 3^A305933(1,n).
Comments