OFFSET
1,2
COMMENTS
Formatted as a triangular array:
m=1: 1
m=2: 2, 3
m=3: 3, 8, 9
m=4: 4, 7, 17, 18
m=5: 5, 17, 57, 79, 80
m=6: 6, 35, 25, 113, 195, 196
m=7: 7, 48, 165, 326, 355, 553, 554
m=8: 8, 15, 154, 500, 982, 1264, 1823, 1824
m=9: 9, 34, 81, 661, 1667, 2804, 466, 2291, 2292
m=10: 10, 99, 99, 168, 1055, 2284, 2624, 4923, 7217, 7218
m=11: 11, 32, 606, 2069, 4988, 9133, 22910, 4871, 38298, 45521, 45522
m=12: 12, 70, 215, 782, 3170, 9850, 39347, 40076, 147279, 242603, 288134, 288135
FORMULA
S(m,m)=S(m,m-1)+1
PROG
(PARI) { T(m, n) = local(v, r, k, t); v=vector(n); v[1]=m; r=0; k=1; until( vecmax(v)==m, t=v[k]; r+=t; v[k]=0; k=0; while(t, k++; if(k>n, k=1); v[k]++; t--) ); r }
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Max Alekseyev, Jun 02 2009
STATUS
approved