| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
structure.sage_object.SageObject --+
|
SloaneSequence --+
|
A000005
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
The sequence $tau(n)$, which is the number of divisors of $n$.
This sequence is also denoted $d(n)$ (also called $\tau(n)$ or
$\sigma_0(n)$), the number of divisors of n.
INPUT:
n -- positive integer
OUTPUT:
EXAMPLES:
sage: d = sloane.A000005; d
The integer sequence tau(n), which is the number of divisors of n.
sage: d(1)
1
sage: d(6)
4
sage: d(51)
4
sage: d(100)
9
sage: d(0)
Traceback (most recent call last):
...
ValueError: input n (=0) must be a positive integer
sage: d.list(10)
[1, 2, 2, 3, 2, 4, 2, 4, 3, 4]
AUTHOR:
-- Jaap Spies (2006-12-10)
-- William Stein (2007-01-08)
|
EXAMPLES:
sage: sloane.A000005._repr_()
'The integer sequence tau(n), which is the number of divisors of n.'
|
EXAMPLES:
sage: sloane.A000005._eval(5)
2
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:36 2008 | http://epydoc.sourceforge.net |