OFFSET
1,2
COMMENTS
LINKS
Robin Visser, Table of n, a(n) for n = 1..10000
FORMULA
T(n,k) = 2*T(n,k-1) - T(n-1,k-1) for all n, k > 0, where T(n,0) = 10^n and T(0,k) = 2^k. - Robin Visser, Aug 09 2023
EXAMPLE
Array starts:
1, 2, 4, 8,
10, 19, 36, 68,
100, 190, 361, 686,
1000, 1900, 3610, 6859,
PROG
(Sage)
def a(n, k):
T = [[0 for j in range(k+1)] for i in range(n+1)]
for i in range(n+1): T[i][0] = 10^i
for j in range(1, k+1):
T[0][j] = 2^j
for i in range(1, n+1): T[i][j] = 2*T[i][j-1] - T[i-1][j-1]
return T[n][k] # Robin Visser, Aug 09 2023
CROSSREFS
KEYWORD
AUTHOR
Mark Dols, May 31 2010
EXTENSIONS
More terms from Robin Visser, Aug 09 2023
STATUS
approved