OFFSET
1,2
COMMENTS
Lexicographically earliest sequence of distinct terms > 0 with this property.
The sequence is conjectured to be a permutation of the integers > 0.
EXAMPLE
1 and 3 -> 13/4 with remainder 1
3 and 5 -> 35/8 with remainder 3
5 and 30 -> 530/35 with remainder 5
30 and 12 -> 3012/42 with remainder 30
12 and 4 -> 124/16 with remainder 12
4 and 10 -> 410/14 with remainder 4
10 and 6 -> 106/16 with remainder 10
6 and 2 -> 62/8 with remainder 6; etc.
The first and last column are identical.
MATHEMATICA
a[1]=1; a[n_]:=a[n]=Block[{k=1}, While[MemberQ[Array[a, n-1], k]||Mod[FromDigits@Flatten[IntegerDigits/@{a[n-1], k}], a[n-1]+k]!=a[n-1], k++]; k]; Array[a, 27] (* Giorgos Kalogeropoulos, May 11 2022 *)
PROG
(PARI) lista(nn) = {my(k, v=vector(nn)); v[1]=1; for(i=1, nn-1, k=1; until(eval(Str(v[i], k))%(v[i]+k)==v[i]&&!vecsearch(vecsort(v), k), k++); v[i+1]=k); v; } \\ Jinyuan Wang, Feb 10 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini, Feb 03 2021
EXTENSIONS
More terms from Jinyuan Wang, Feb 10 2021
STATUS
approved