OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
Eric Angelini, Michael S. Branicky, Giovanni Resta, N. J. A. Sloane, and David W. Wilson, The Comma Sequence: A Simple Sequence With Bizarre Properties, arXiv:2401.14346, Youtube
MATHEMATICA
fQ[n_]:=Module[{k=n+10*Last[IntegerDigits[n]]+Range[9]}, Length[Select[k, #-n==FromDigits[{Last[IntegerDigits[n]], First[IntegerDigits[#]]}]&]]]==1;
Select[Range[83], fQ[#]&] (* Ivan N. Ianakiev, Dec 16 2023 *)
PROG
(Python)
def ok(n):
m = n + 10*(n%10)
return len([m+y for y in range(1, 10) if int(str(m+y)[0]) == y]) == 1
print([k for k in range(1, 100) if ok(k)]) # Michael S. Branicky, Dec 28 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 15 2023
STATUS
approved