OFFSET
0,1
COMMENTS
Original name used notation "5(n)//4//9(n+1)//4(n)//5 where the symbols // denote concatenation of digits in the definition, and d(n) denotes n repetitions of d, n >= 0."
LINKS
Syed Iddi Hasan, Table of n, a(n) for n = 0..248
OEIS Index to entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
From M. F. Hasler, Jul 17 2026: (Start)
a(n) = (190*100^(n+1) - 47*10^(n+1) - 8)/3.
G.f.: (6174 - 53550*x + 45000*x^2)/((1 - x)*(1 - 10*x)*(1 - 100*x)).
a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3), n >= 3. (End)
EXAMPLE
a(1) = 631764 is a fixed point of the Kaprekar map A151949: n -> (n's digits in decreasing order) - (n's digits in increasing order), and is obtained from the given expression and formula for n = 1. [Edited by M. F. Hasler, Jul 17 2026]
MATHEMATICA
A214556[n_] := (190*100^(n+1) - 47*10^(n+1) - 8)/3;
Array[A214556, 15, 0] (* Paolo Xausa, Jul 18 2026 *)
PROG
(PARI) apply( {A214556(n)=(190*100^n++-47*10^n-8)/3}, [0..13]) \\ M. F. Hasler, Jul 17 2026
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
Syed Iddi Hasan, Jul 20 2012
EXTENSIONS
Notation in NAME changed to standard POSIX regex by M. F. Hasler, Jul 17 2026
STATUS
approved
