OFFSET
1,2
COMMENTS
Let p_1^e_1 * p_2^e_2 * ... * p_r^e_r be the prime factorization of a number, with primes p_1 < p_2 < ... < p_r and e_j > 0. Then the number is in this sequence if and only if p_i > Product_{j < i} p_j^e_j for i=1..r.
Even though most small numbers belong to this sequence, this sequence has zero density (see the formula below).
Except for the first term 1, this sequence is a proper subsequence of A027855, where the condition on the prime factors only applies to the largest prime factor.
Stef and Tenenbaum call these numbers lexicographical.
LINKS
A. Stef and G. Tenenbaum, Entiers lexicographiques, Ramanujan Journal, 2 (1998), 167-184.
FORMULA
Stef and Tenenbaum show that the count of these integers up to x is asymptotic to c*x/(log x)^b, where b is approximately 0.2228 and c is a positive constant. As a result, the n-th term of this sequence is asymptotic to (1/c)*n*(log n)^b.
EXAMPLE
The number 12 is not in this sequence: Writing the divisors of 12 as 3^a*2^b where a=0,1 and b=0,1,2, the lexicographical order corresponds to (a,b)=(0,0),(0,1),(0,2),(1,0),(1,1),(1,2), i.e., 1,2,4,3,6,12, which is not the natural order.
MATHEMATICA
list = {1}; U = 201;
For[n = 2, n <= U, n += 1, fa = FactorInteger[n]; om = Length[fa];
r = 1; ga = 1;
For[j = 1, j <= om, j++,
If[fa[[j, 1]] <= r, ga = 0; Break[]];
p = fa[[j, 1]]; A = fa[[j, 2]];
r = r*p^A;
];
If[ga == 1, AppendTo[list, n]; ];
];
Print[list]
PROG
(PARI) isok(n)={my(f=factor(n), h=#f~, s=0); forvec(X=vector(h, i, [0, f[h+1-i, 2]]), my(p=prod(i=1, h, f[h+1-i, 1]^X[i])); if(p<s, return(0)); s=p); 1} \\ Andrew Howroyd, Mar 05 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Andreas Weingartner, Mar 05 2023
STATUS
approved