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.

A329619 Difference between the maximal digit value used when A108951(n) is written in primorial base and its 2-adic valuation.

Original entry on oeis.org

1, 0, 0, 0, 0, 0, 0, -2, -1, 0, 0, 1, 0, 0, 4, -2, 0, -1, 0, 1, 4, 0, 0, -1, 2, 0, -2, 1, 0, 2, 0, -4, 4, 0, 6, 0, 0, 0, 4, -3, 0, -2, 0, 1, 2, 0, 0, -2, 4, 5, 4, 1, 0, -2, 2, 4, 4, 0, 0, -1, 0, 0, 0, -4, 11, 9, 0, 1, 4, 2, 0, -2, 0, 0, 2, 1, 14, 9, 0, -3, 2, 0, 0, -2, 9, 0, 4, 4, 0, 6, 10, 1, 4, 0, 5, 0, 0, 9, 7, 2, 0, 9, 0, 4, 1
Offset: 1

Views

Author

Antti Karttunen, Nov 18 2019

Keywords

Crossrefs

Programs

  • Mathematica
    With[{b = Reverse@ Prime@ Range@ 120}, Array[Max@ IntegerDigits[#, MixedRadix[b]] &@ Apply[Times, Map[#1^#2 & @@ # &, FactorInteger[#] /. {p_, e_} /; e > 0 :> {Times @@ Prime@ Range@ PrimePi@ p, e}]] - PrimeOmega[#] &, 105] ] (* Michael De Vlieger, Nov 18 2019 *)
  • PARI
    A034386(n) = prod(i=1, primepi(n), prime(i));
    A108951(n) = { my(f=factor(n)); prod(i=1, #f~, A034386(f[i, 1])^f[i, 2]) };  \\ From A108951
    A328114(n) = { my(s=0, p=2); while(n, s = max(s,(n%p)); n = n\p; p = nextprime(1+p)); (s); };
    A329344(n) = A328114(A108951(n));
    A329619(n) = (A329344(n) - bigomega(n));

Formula

a(n) = A329344(n) - A001222(n).
a(n) = A328114(A108951(n)) - A007814(A108951(n)).
a(p) = 0 for all primes p.