editing
approved
editing
approved
Array[Complement[Divisors@ #, {1, #}] &, {42}] /. {} -> {0} // Flatten {(* Michael De Vlieger, Jan 16 2016 *})
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Array[Complement[Divisors@ #, {1, #}] &, {42}] /. {} -> {0} // Flatten {* Michael De Vlieger, Jan 16 2016 *}
approved
editing
editing
approved
Triangle Irregular triangle read by rows in which row n lists the divisors of n in the range 1 < d < n; or 0 if there are no such divisors.
a(n) = 0 if The length of row n is 1 or a primeA264440(n). - _Wolfdieter Lang_, Jan 16 2016
Triangle The irregular triangle begins:
approved
editing
editing
approved
Row n lists the nontrivial divisors of n, or 0 if there are no such divisors. [From _- _Omar E. Pol_, Nov 22 2010]
[Contribution from _From _Omar E. Pol_, Nov 22 2010] : (Start)
Triangle beginbegins:
for n from 1 to 80 do if isprime(n) or n = 1 then printf("0, ") ; else dvs := sort(convert(numtheory[divisors](n) minus {1, n}, list) ) ; for d in dvs do printf("%d, ", d) ; od: fi ; od: - _# _R. J. Mathar_, May 23 2008
approved
editing