A196442 a(1) = a(2) = 1; for n >= 2, a(n) is the product of number k <= n such that GCQ_A(n, k) >= 2 (see definition in comments).
1, 1, 3, 4, 60, 30, 2520, 6720, 45360, 604800, 19958400, 3991680, 3113510400, 14529715200, 163459296000, 3487131648000, 177843714048000, 266765571072000, 60822550204416000, 67580611338240000, 6386367771463680000, 187333454629601280000, 12926008369442488320000, 5170403347776995328000, 7755605021665492992000000, 67215243521100939264000000
Offset: 1
Keywords
Examples
For n = 6, a(6) = 30 because there are 2 cases k (k = 5, 6) with GCQ_A(6, k) >= 2: GCQ_A(6, 5) = 4, GCQ_A(6, 6) = 5 and the product of these numbers k is 30. Also there are 2 same cases k with LCQ_A(6, k) >= 2: LCQ_A(6, 5) = 4, LCQ_A(6, 6) = 4.
Programs
-
PARI
GCQ_A(a, b) = { forstep(m=min(a, b)-1, 2, -1, if(a%m && b%m, return(m))); 0; }; \\ From PARI-program in A196438. A196442(n) = prod(k=1,n,if(2<=GCQ_A(n,k),k,1)); \\ Antti Karttunen, Jun 13 2018
Extensions
More terms from Antti Karttunen, Jun 13 2018
Comments