|
| |
|
|
A156207
|
|
Sum of of the products of the digits in n and their position m in n.
|
|
0
| |
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 8, 10
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
COMMENTS
| 1,2,3,4,5,6,7,8,9,19 are the only numbers such that a(n) = n. For the
case of a 2-digit number, let 10a+b = a+2b.Then 9a = b so a=1 and b = 9.
|
|
|
FORMULA
| Given a number n with m digits d1d2d3...dm, a(n) = d1*1+d2*2+d3*3+...+dm*m.
|
|
|
EXAMPLE
| For n=19 we have 1*1 + 2*9 = 19, the 14-th entry in the sequence.
|
|
|
PROG
| (PARI) g1(n) = for(j=1, n, print1(g(j)", "))
g(n) = v=Vec((Str(n))); sum(x=1, length(v), x*eval(v[x]))
|
|
|
CROSSREFS
| Sequence in context: A115026 A101337 A135208 * A061486 A138470 A112875
Adjacent sequences: A156204 A156205 A156206 * A156208 A156209 A156210
|
|
|
KEYWORD
| base,nonn
|
|
|
AUTHOR
| Cino Hilliard (hillcino368(AT)hotmail.com), Feb 05 2009, Feb 07 2009
|
| |
|
|