Problem 290: Digital Signature

FCC link

How many integers 0 ≤ n < 1018 have the property that the sum of the digits of n equals the sum of digits of 137n?

Test

{{test}}

Console output