STATUS
proposed
approved
proposed
approved
editing
proposed
a(n) = {my(k=1, p=prime(n)); while (J(k) % p, k++); k; } \\ Michel Marcus, Sep 29 2020
proposed
editing
editing
proposed
(PARI) J(n) = (2^n - (-1)^n)/3; \\ A001045
a(n) = {my(k=1, p=prime(n)); while (J(k) % p, k++); k; \\ Michel Marcus, Sep 29 2020
proposed
editing
editing
proposed
The 4th prime number is 7, and 7 divides 21 which is Jacobsthal(6), so a(4) = 6. The second prime number, 3, divides Jacobsthal(6) as well, but it divides also the smaller Jacobsthal(3), i.e., a(2) = 3.
proposed
editing
editing
proposed
Jacobsthal entry points: a(n) is the smallest m > 0 such that the n-th prime divides Jacobsthal(m).
proposed
editing
editing
proposed