cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A356303 The least k >= 0 such that n and A276086(n-k) are relatively prime, where A276086 is the primorial base exp-function.

Original entry on oeis.org

0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 6, 0, 0, 0, 0, 14, 0, 0, 0, 0, 16, 2, 0, 0, 0, 20, 0, 2, 0, 0, 0, 0, 0, 2, 0, 30, 0, 0, 0, 2, 6, 0, 18, 0, 0, 14, 0, 0, 0, 20, 16, 2, 0, 0, 0, 20, 28, 2, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 2, 66, 0, 0, 0, 0, 14, 0, 48, 0, 0, 16, 2, 0, 0, 60, 20, 0, 2, 0, 0, 0, 62, 0, 2, 0, 0, 0, 0, 70, 2, 6
Offset: 0

Views

Author

Antti Karttunen, Nov 03 2022

Keywords

Comments

All terms are even.

Crossrefs

Cf. A324583 (positions of zeros).
Cf. also A356302, A356305.

Programs

  • PARI
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    A356303(n) = { my(k=0); while(gcd(A276086(n-k),n)!=1,k++); (k); };