login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A067098
Floor[X/Y] where X = concatenation in increasing order of first n powers of 3 and Y = that of first n natural numbers.
5
3, 3, 31, 318, 31817, 3181548, 3181530396, 3181528335091, 31815281031585777, 31815281005815399552, 318152810055319253966698, 3181528100552883295133046294, 318152810055287994498392866979206
OFFSET
1,1
EXAMPLE
a(4)= floor [ 392781/1234] = floor[318.299027552674230145867098865478] = 318.
MATHEMATICA
f[n_] := (k = 1; x = y = "0"; While[k < n + 1, x = StringJoin[x, ToString[3^k]]; y = StringJoin[y, ToString[k]]; k++ ]; Return[ Floor[ ToExpression[x] / ToExpression[y]]] ); Table[ f[n], {n, 1, 15} ]
Table[Floor[FromDigits[Flatten[IntegerDigits/@(3^Range[n])]]/ FromDigits[ Flatten[IntegerDigits/@Range[n]]]], {n, 15}] (* Harvey P. Dale, Mar 10 2019 *)
KEYWORD
easy,base,nonn
AUTHOR
Amarnath Murthy, Jan 07 2002
EXTENSIONS
More terms from Robert G. Wilson v, Jan 09 2002
STATUS
approved