#Japt, 1814 bytes
Outputs the first n
terms usingth term, 1-based indexingindexed.
@_ì_äa âÃÉ}fXÄ}h9õ
Try it
@_ì_äa âÃÉ}fXÄ}h9õ :Implicit input of integer U
9õ :Range [1,9]
@ }h :Run the following function until that reaches length U,
:passing the last element as X each time,
:and pushing the output each time
XÄ : Add 1 to X
_ _ì äa dÉ ªU´}f : Get the first integer >= to that that returns falsey (0)
ì : Split to digit array
_ : Run through the following function and rejoin to integer
äa : Consecutive absolute differences
â : Deduplicate
à : End function
É : Subtract 1
Try it
(I know, I know, I'm supposed to be taking a break but I'm in golf withdrawal!)