Formula for A033941

38 views
Skip to first unread message

Jamil Silva

unread,
May 2, 2026, 5:50:35 PM (12 days ago) May 2
to SeqFan
The formula for https://oeis.org/A033941 could be a(n) = Ceiling(d[A002808 (n)]/2) - 1 ?

M F Hasler

unread,
May 2, 2026, 8:59:36 PM (12 days ago) May 2
to seq...@googlegroups.com
On Sat, May 2, 2026 at 5:50 PM Jamil Silva <jmai...@gmail.com> wrote:
The formula for https://oeis.org/A033941 could be a(n) = Ceiling(d[A002808 (n)]/2) - 1 ?
 
Yes (except that formulas shouldn't use Mathematica code...).
The number of "proper" factorisations of any number n is 
 f(n) = (numdiv(n) + issquare(n))/2 - 1
as written in the PARI code, because the divisors are used in pairs
except for the middle divisor sqrt(n) if n is a square,
and we subtract 1 for the trivial factorisation 1*n which we want to exclude.

So you can write it indeed as ceiling( numdiv(n)/2 ) - 1, or even shorter: 
f(n) = (numdiv(n)-1)\2 , with the "floor division" operator \ of PARI,
i.e.: A033941(n) = floor((numdiv(A002808(n)) - 1)/2).

-M.
Reply all
Reply to author
Forward
0 new messages