OFFSET
0,13
COMMENTS
Each substring is used in only product.
a(n) = 0 for 0 <= n <= 10.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..20000
EXAMPLE
a(1234) = (1*234 + 2*134 + 3*124 + 4*123) + (12*34 + 23*14) = 2096.
a(12345) = (1*2345 + 2*1345 + 3*1245 + 4*1235 + 5*1234) + (12*345 + 15*234 + 23*145 + 34*125 + 45*123) = 40650.
MAPLE
a:= n-> (s-> add(add(parse(s[i..j])*parse(cat(s[1..i-1],
s[j+1..length(s)])), i=1..j), j=1..length(s)-1))(""||n):
seq(a(n), n=0..120); # Alois P. Heinz, May 22 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Sep 25 2003
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, Jul 14 2007
a(0)=0 inserted and examples corrected by Alois P. Heinz, May 22 2021
STATUS
approved