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!)
A333885 Number of triples (i,j,k) with 1 <= i < j < k <= n such that i divides j divides k. 1

%I #27 Nov 27 2020 07:41:33

%S 0,0,0,1,1,3,3,6,7,9,9,16,16,18,20,26,26,33,33,40,42,44,44,59,60,62,

%T 65,72,72,84,84,94,96,98,100,119,119,121,123,138,138,150,150,157,164,

%U 166,166,192,193,200,202,209,209,224,226,241,243,245,245,276,276

%N Number of triples (i,j,k) with 1 <= i < j < k <= n such that i divides j divides k.

%H Alois P. Heinz, <a href="/A333885/b333885.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = Sum_{m=1..n} Sum_{d|m, d<m} (tau(d)-1). - _Alois P. Heinz_, Apr 09 2020

%e The a(4) = 1 triple is (1,2,4).

%e The a(8) = 6 triples are (1,2,4), (1,2,6), (1,2,8), (1,3,6), (1,4,8), (2,4,8).

%p with(numtheory):

%p a:= proc(n) option remember; `if`(n=0, 0, a(n-1)+

%p add(tau(d)-1, d=divisors(n) minus {n}))

%p end:

%p seq(a(n), n=1..80); # _Alois P. Heinz_, Apr 09 2020

%t a[n_] := a[n] = If[n == 0, 0, a[n - 1] + Sum[DivisorSigma[0, d] - 1, {d, Most @ Divisors[n]}]];

%t Array[a, 80] (* _Jean-François Alcover_, Nov 27 2020, after _Alois P. Heinz_ *)

%o (Python) an = len([(i,j,k) for i in range(1,n+1) for j in range(i+1,n+1) for k in range(j+1,n+1) if j%i==0 and k%j==0])

%Y Cf. A000005, A002541, A320224.

%K nonn

%O 1,6

%A _Derek Lim_, Apr 08 2020

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 September 8 10:21 EDT 2024. Contains 375753 sequences. (Running on oeis4.)