Skip to main content

Divisors

Returns the divisors of a number.

Syntax

divisors(Integer)
divisors(Integer, Boolean)

Description

Given an integer, returns a list with the positive divisors in ascending order.

arithmetic.divisors1.calc.png

Given an integer and a boolean b, if b=false it is the same as divisors(Integer); if b=true returns the negative divisors too with the following structure: {d1,-d1,d2,-d2,...,dn,-dn}, with 0<d1<d2<<dn.

arithmetic.divisors2.calc.png