P776
projecteuler.net

Digit Sum Division

ℹ️Published on Sunday, 12th December 2021, 04:00 am; Solved by 593;
Difficulty rating: 25%

For a positive integer n, d(n) is defined to be the sum of the digits of n. For example, d(12345)=15.

Let F(N)=n=1Nnd(n).

You are given F(10)=19, F(123)1.187764610390e3 and F(12345)4.855801996238e6.

Find F(1234567890123456789). Write your answer in scientific notation rounded to twelve significant digits after the decimal point. Use a lowercase e to separate the mantissa and the exponent.



Soluzione

Last modified: June 14, 2025. Website built with Franklin.jl and the lovely Julia programming language.