A248729 Number of digits in the decimal expansion of the number of partitions of 3^n.
1, 1, 2, 4, 8, 15, 27, 48, 86, 152, 266, 463, 806, 1400, 2429, 4212, 7301, 12651, 21918, 37969, 65771, 113926, 197332, 341797, 592018, 1025414, 1776077
Offset: 0
Programs
-
Magma
[Floor(Log(10,(NumberOfPartitions(3^n))))+1: n in [0..12]]; // Vincenzo Librandi, Oct 13 2014
-
Mathematica
f[n_] := Floor[ Log[10, PartitionsP[ 3^n]] + 1]; Table[ f@n, {n, 0, 30}] IntegerLength[PartitionsP[3^Range[0,30]]] (* Harvey P. Dale, Sep 05 2023 *)
-
PARI
a(n) = #Str(numbpart(3^n)); \\ Michel Marcus, Oct 13 2014