Skip to main content
3 of 5
deleted 7 characters in body
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20

J, 37 33 bytes

+^:(((=1#."."0)*:(e.".\.))":)^:_~

Try it online!

                                ~    A = N
+^:                          ^:_     while(...)A+=N; return A
   (                      ":)        A to string
   (((    "."0)          )  )        digits of A
   ((( 1#.    )          )  )        sum
   (((=       )          )  )        equals N
   ((            (e.".\.))  )        N is one of the suffixes of A-string
   ((          *:        )  )        not AND
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20