A348268 Mapping between Lyndon factorization and prime factorization.
1, 2, 3, 4, 5, 6, 7, 8, 11, 10, 9, 12, 13, 14, 17, 16, 19, 22, 15, 20, 29, 18, 21, 24, 23, 26, 37, 28, 31, 34, 41, 32, 43, 38, 33, 44, 25, 30, 35, 40, 53, 58, 27, 36, 67, 42, 51, 48, 47, 46, 39, 52, 61, 74, 49, 56, 59, 62, 73, 68, 71, 82, 79, 64, 83, 86, 57, 76, 55, 66, 77
Offset: 0
Examples
We map Lyndon-words to positive integers that have no divisors other than 1 and itself: [] -> 1, 1 -> 2, 01 -> 3, 001 -> 5, 011 -> 7, 0001 -> 11, ... 9 is in reversed order binary: 1001, has the factors (1)(001) -> a(9) = 2*5 = 10. 10 is in reversed order binary: 0101, has the factors (01)(01) -> a(10) = 3*3 = 9.
Links
- Thomas Scheuerle, Table of n, a(n) for n = 0..5000
- Thomas Scheuerle, Program (MATLAB)
- Index entries for sequences that are permutations of the natural numbers
Programs
-
MATLAB
% See Scheuerle link.
Comments