OFFSET
1,2
COMMENTS
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..100
Shyam Sunder Gupta, On Some Marvellous Numbers of Kaprekar, Exploring the Beauty of Fascinating Numbers, Springer (2025) Ch. 9, 275-315. See Section 9.2.2.
Index entries for linear recurrences with constant coefficients, signature (1000000001,-1000000000).
FORMULA
From Chai Wah Wu, May 31 2026: (Start)
a(n) = (10^(9*n-8)-1)/9.
a(n) = (10^9+1)*a(n-1) - 10^9*a(n-2) for n > 2.
G.f.: x*((10^9-10)*x/9 + 1)/((x - 1)*(10^9*x - 1)). (End)
MATHEMATICA
(10^(9*Range[10] - 8) - 1)/9 (* Paolo Xausa, Jun 23 2026 *)
PROG
(Python)
def A382161(n): return (10**(9*n-8)-1)//9 # Chai Wah Wu, May 31 2026
(PARI) a(n)=(10^(9*n-8)-1)/9 \\ Charles R Greathouse IV, Jun 08 2026
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
N. J. A. Sloane, Mar 25 2025
EXTENSIONS
More terms from Chai Wah Wu, May 31 2026
STATUS
approved
