OFFSET
1,2
COMMENTS
a(1) = 0 by convention as A386482(1) = 1 has no prime factor.
Note that there might be several largest runs (necessarily with distinct common prime factors) for a given index n: for example, for n = 7, A386482(7) = 12 belongs to [6, 3, 9, 12] (with common prime factor 3) and to [12, 10, 8, 14] (with common prime factor 2).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10117
Rémy Sigrist, PARI program
EXAMPLE
The first terms are:
n a(n) A386482(n) Largest run
-- ---- ---------- ---------------
1 0 1 []
2 3 2 [2,4,6]
3 3 4 [2,4,6]
4 4 6 [6,3,9,12]
5 4 3 [6,3,9,12]
6 4 9 [6,3,9,12]
7 4 12 [6,3,9,12]
8 4 10 [12,10,8,14]
9 4 8 [12,10,8,14]
10 4 14 [12,10,8,14]
11 3 7 [14,7,21]
12 3 21 [14,7,21]
13 3 18 [18,16,20]
14 3 16 [18,16,20]
15 5 20 [20,15,5,25,30]
16 5 15 [20,15,5,25,30]
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Sep 07 2025
STATUS
approved
