Core API
oeis_code.core
get(seq_id, n, backend='auto')
Get the n-th term of an OEIS sequence.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seq_id
|
str
|
The OEIS identifier (e.g., 'A000045'). |
required |
n
|
int
|
The index of the term to retrieve. |
required |
backend
|
BackendType
|
The backend to use ('auto', 'pari', or 'python'). 'auto' will prioritize PARI/GP if available. |
'auto'
|
Returns:
| Type | Description |
|---|---|
Any
|
The n-th term of the sequence. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the sequence ID is not found in the registry. |