login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A072513 Product of all n - d, where d < n and d is a divisor of n. 7

%I #15 Sep 21 2018 02:12:46

%S 1,1,2,6,4,60,6,168,48,360,10,47520,12,1092,1680,20160,16,440640,18,

%T 820800,5040,4620,22,734469120,480,7800,11232,4953312,28,3946320000,

%U 30,9999360,21120,17952,28560,439723468800,36,25308,35568,35852544000

%N Product of all n - d, where d < n and d is a divisor of n.

%H Ivan Neretin, <a href="/A072513/b072513.txt">Table of n, a(n) for n = 1..1000</a>

%F a(n) = (n-d_1)(n-d_2)...(n-d_k) where d_k is the largest divisor of n less than n (k = tau(n) - 1).

%F a(p) = p-1, a(pq) = pq(p-1)(q-1)(pq-1), p and q prime.

%F If n is not a prime or the square of a prime then n divides a(n).

%e a(6) = (6-1)(6-2)(6-3) = 60.

%e For n = 16 the divisors d < n are 1,2,4 and 8, so a(16) = (16-1)*(16-2)*(16-4)*(16-8) = 15*14*12*8 = 20160.

%t Table[Times @@ (n - Most[Divisors[n]]), {n, 1, 40}] (* _Ivan Neretin_, May 26 2015 *)

%o (PARI) for(n=1,40,d=divisors(n); print1(prod(j=1,matsize(d)[2]-1,n-d[j]),","))

%o (PARI) a(n)=factorback(apply(d->if(d<n,n-d,1),divisors(n))) \\ _Charles R Greathouse IV_, May 26 2015

%o (Haskell)

%o a072513 n = product $ map (n -) $ a027751_row n

%o -- _Reinhard Zumkeller_, May 27 2015

%Y Cf. A072512, A080497, A080498, A080500 (similar products), A258324 (LCM instead of product).

%Y Cf. A027751.

%K nonn

%O 1,3

%A _Amarnath Murthy_, Jul 28 2002

%E Edited and extended by _Klaus Brockhaus_, Jul 31 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)