P-series convergence checker
The p-series convergence checker classifies an infinite series of the form sum from n = 1 to infinity of 1 divided by n raised to p.
Run — free
Enter any finite real exponent, and the calculator compares it with the critical value 1. The response states whether the series converges, shows the relevant comparison, and repeats the governing criterion. It is a direct, deterministic way to check homework, document a calculation, or add the standard p-series test to an automated workflow without estimating partial sums.
Recognize the p-series before applying the test
The p-series test applies to an infinite sum whose nth term is exactly 1/n^p, starting at a positive integer index. The exponent p must be a fixed real number; it does not change with n. Once the series has this form, its behavior depends entirely on whether p lies above the critical threshold 1. Enter that exponent in the p field. For example, sum 1/n^2 has p = 2, while the harmonic series sum 1/n has p = 1. A constant multiplier in front of the entire series does not change convergence when that constant is finite and nonzero, although this checker expects only the exponent because the multiplier is irrelevant to the test. If the terms contain logarithms, factorials, alternating signs, changing exponents, or a more complicated denominator, first use algebra or a comparison theorem to justify reducing the question to a p-series. Do not extract a convenient-looking exponent from an expression that is not actually equivalent to this standard form.
Compare p with the critical value one
A p-series converges if and only if p is strictly greater than 1. The word strictly matters. When p = 1, the series is the harmonic series and diverges, even though its terms approach zero. When p is below 1, the series also diverges. This includes positive fractional exponents such as 1/2, zero, and negative exponents. At p = 0 every term equals 1, while a negative p makes the term magnitudes grow rather than shrink. For p > 1, the terms decay quickly enough for the infinite sum to approach a finite value. The checker returns the supplied exponent, a Boolean convergence result, a plain-language classification, and one of the comparisons p > 1, p = 1, or p < 1. The threshold field remains 1 so software can consume the result without parsing prose. No numerical tolerance is used: the input number is compared directly with the exact mathematical boundary represented by 1.
Interpret the result and its limits
A convergent classification says that the sequence of partial sums approaches a finite limit. It does not generally calculate that limit. Some p-series have familiar values, such as p = 2, but the threshold test itself only decides convergence. A divergent classification says that no finite sum is approached under the ordinary definition of an infinite series. It does not mean every term grows, nor does it mean the first several partial sums must look large; divergence at p = 1 is famously slow. Also remember that terms approaching zero are necessary but not sufficient for convergence. This capability is therefore best used as a theorem-based decision, not as a numerical simulation. When auditing a comparison-test solution, verify the inequality direction separately: comparison with a convergent p-series can establish convergence under an upper bound, while comparison with a divergent p-series can establish divergence under a lower bound. The checker classifies the reference p-series, but it cannot verify an unstated inequality involving another sequence. Each API calculation costs $0.002, and the browser version can apply the same deterministic rule locally.
What you can do with it
Check a calculus exercise
Enter the exponent from a standard p-series and confirm the convergence classification with the exact threshold comparison.
Choose a comparison series
Classify a candidate p-series before using it as the convergent upper bound or divergent lower bound in a comparison test.
Automate solution validation
Add a deterministic convergence decision and structured Boolean result to educational software or a symbolic-math workflow.
FAQ
For which values of p does a p-series converge?
It converges exactly when p > 1.
What happens when p equals 1?
The series becomes the harmonic series, which diverges.
Does a p-series converge when 0 < p < 1?
No. Its terms approach zero, but its partial sums still diverge.
Can p be zero or negative?
Yes, the checker accepts any finite real p. These cases diverge because p is not greater than 1.
Does this calculate the value of the infinite sum?
No. It classifies convergence using the p-series theorem; it does not evaluate the corresponding zeta value.
How much does an API check cost?
Each API calculation costs $0.002; the browser calculator can run the same rule locally.
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/calculus/p-series-convergence \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"p":2}'const res = await fetch("https://api.kit.forhosting.com/calculus/p-series-convergence", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"p": 2
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/calculus/p-series-convergence",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"p": 2
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/calculus/p-series-convergence", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"p":2}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"p":2}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/calculus/p-series-convergence", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"p": 2
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "calculus.p_series_convergence",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |