login
A131700
Sum of all n-digit Cullen numbers.
0
13, 90, 1443, 6658, 81923, 827395, 17956868, 157286403, 1434451971, 12884901891, 114353504259, 1005022347267, 8761733283843, 166026255794180, 1337006139375619, 11434920928870403, 97390341941886979, 1799188051134513156, 14231374822490767363, 119903836479112085507
OFFSET
1,1
EXAMPLE
Sum of all 1-digit Cullen numbers is 1 + 3 + 9 = 13.
Sum of all 2-digit Cullen numbers is 25 + 65 = 90.
Sum of all 3-digit Cullen numbers is 161 + 385 + 897 = 1443.
MATHEMATICA
digNum[n_] := Length @ IntegerDigits[n]; cullen[n_] := n * 2^n + 1; digCount = 0; sum = 0; cumsum = {}; Do[c = cullen[n]; If[digNum[c] > digCount, digCount++; AppendTo[cumsum, sum]]; sum += c, {n, 0, 65}]; Differences[cumsum] (* Amiram Eldar, Nov 30 2019 *)
CROSSREFS
Cf. A002064.
Sequence in context: A166215 A296574 A347686 * A156947 A139613 A212956
KEYWORD
nonn,base,less
AUTHOR
Parthasarathy Nambi, Sep 15 2007
EXTENSIONS
More terms from Amiram Eldar, Nov 30 2019
STATUS
approved