A133995 Irregular array read by rows: n-th row contains (in numerical order) the positive integers <= n which are neither divisors of n nor are coprime to n. A 0 is put into row n if there are no such integers.
0, 0, 0, 0, 0, 4, 0, 6, 6, 4, 6, 8, 0, 8, 9, 10, 0, 4, 6, 8, 10, 12, 6, 9, 10, 12, 6, 10, 12, 14, 0, 4, 8, 10, 12, 14, 15, 16, 0, 6, 8, 12, 14, 15, 16, 18, 6, 9, 12, 14, 15, 18, 4, 6, 8, 10, 12, 14, 16, 18, 20, 0, 9, 10, 14, 15, 16, 18, 20, 21, 22, 10, 15, 20, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 6, 12, 15, 18, 21, 24
Offset: 1
Examples
The divisors of 12 are: 1,2,3,4,6,12. The positive integers which are <= 12 and are coprime to 12 are: 1,5,7,11. So row 12 contains the positive integers <= 12 which are in neither of these two lists: 8,9,10. The irregular triangle T(n, k) begins: n\k 1 2 3 4 5 6 7 ... 1: 0 2: 0 3: 0 4: 0 5: 0 6: 4 7: 0 8: 6 9: 6 10: 4 6 8 11: 0 12: 8 9 10 13: 0 14: 4 6 8 10 12 15: 6 9 10 12 16: 6 10 12 14 17: 0 18: 4 8 10 12 14 15 16 19: 0 20: 6 8 12 14 15 16 18 ... formatted by _Wolfdieter Lang_, Jan 16 2016
Links
- Robert Israel, Table of n, a(n) for n = 1..10014 (rows 1 to 237, flattened)
Programs
-
Maple
row:= proc(n) local r; r:= remove(t -> member(igcd(t, n), [1, t]), [$1..n]): if r = [] then 0 else op(r) fi end proc: A:= [seq](row(n), n=1..30); # Robert Israel, Jan 19 2016
-
Mathematica
Table[Select[Range@ n, Nor[Divisible[n, #], CoprimeQ[n, #]] &] /. {} -> {0}, {n, 27}] // Flatten (* Michael De Vlieger, Aug 19 2017 *)
Formula
Extensions
More terms from Alvin Hoover Belt, Jan 21 2008
Edited by Wolfdieter Lang, Jan 16 2016
Comments