OFFSET
0,3
COMMENTS
This sequence is obtained by taking the same definition as A389420, except that the rotations of each number are listed in descending order instead.
Sequence can also be seen as an irregular table, where the n-th row corresponds to the all rotations of the digits of n, sorted in nonascending order. - Michael S. Branicky, Oct 18 2025
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10893 (rows 0..3000 of triangle flattened).
EXAMPLE
At n = 10, the rotations are 01 and 10, so 10 and 1 are appended.
At n = 453, the rotations are 345, 453 and 543 so 543, 453 and 345 are appended.
The first 20 rows are as follows:
0 | 0
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 | 6
7 | 7
8 | 8
9 | 9
10 | 10, 1
11 | 11, 11
12 | 21, 12
13 | 31, 13
14 | 41, 14
15 | 51, 15
16 | 61, 16
17 | 71, 17
18 | 81, 18
19 | 91, 19
20 | 20, 2
MATHEMATICA
A389875row[n_] := ReverseSort[ Map[FromDigits, NestList[RotateLeft, #, Length[#] - 1]]] & [IntegerDigits[n]];
Array[A389875row, 50, 0] (* Paolo Xausa, Oct 23 2025 *)
PROG
(Python)
from itertools import count, islice
def agen():
for n in count(0):
s = str(n)
yield from sorted((int(s[i:] + s[:i]) for i in range(len(s))), reverse=True)
print(list(islice(agen(), 62)))
# after Michael S. Branicky in A389420
CROSSREFS
KEYWORD
AUTHOR
Aitzaz Imtiaz, Oct 18 2025
STATUS
approved
