OFFSET
1,1
FORMULA
sum = sum + digit-sum(digit-mult(prime,base=4),base=15). The function digit-mult(n) multiplies all digits d of n, where d > 0. For example, digit-mult(1230) = 1 * 2 * 3 = 6. Therefore, the digit-sum in base 15 of the digit-mult(333) in base 4 = digit-sum(3 * 3 * 3) = digit-sum(1C) = 1 + C = 13. (1C in base 15 = 27 in base 10).
EXAMPLE
5 = digit-sum(digit-mult(2,b=4),b=15) + sum(mult(3,b=4),b=15) = 2 + 3.
19 = digit-sum(digit-mult(2,b=4),b=15) + sum(mult(3,b=4),b=15) + sum(mult(11,b=4),b=15) + sum(mult(13,b=4),b=15) + sum(mult(23,b=4),b=15) + sum(mult(31,b=4),b=15) + sum(mult(101,b=4),b=15) = 2 + 3 + 1 + 3 + 6 + 3 + 1.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Anthony Sand, May 20 2014
STATUS
approved