VOLUME 1 (2026) · OPEN ACCESS · J. CERTIF. REPROD. SCI.
certXiv Journal of Certified and Reproducible Science
Submit Manuscript

For students · a worked example

From a starter problem to a paper

This page follows one example from start to finish: a practice problem, the question that grew out of it, the code, and the finished paper. Every file is here to download. It is a teaching example written for certXiv with an AI assistant. It has not been reviewed, it is not a journal article, and it is not yours to submit.

A starter problem is practice. A paper needs a question of your own.

Starter problem X1 uses the Collatz rule: halve an even number, triple an odd number and add 1, and repeat until you reach 1. It asks which start below 1,000,000 takes the most steps. The answer is 837799, with 524 steps. Getting that answer is good practice, and verify_1_starter.py does it in under a second. It is not a paper, because the answer is already known. A paper answers a question you chose, and says exactly how far the answer goes.

Many of the 26 starter problems can be turned into a question of your own. Four ways to try:

  • Change the rule. In X1, replace 3n + 1 with 3n − 1. Now there are three known loops to fall into, not one, so there is something to find out. This is the example below.
  • Push the range and report what changes. X5 checks that every even number from 4 to 1,000,000 is a sum of two primes, and reports the even number whose smallest such prime is largest. Go to 10,000,000 and report how that record grows.
  • Compare two methods. X3 estimates π by picking random points in a square. Repeat it with points on an evenly spaced grid, and compare how fast the two errors shrink.
  • Count something the problem did not ask for. C4 shows the numbers 1 to 8 can be coloured red or blue with no three evenly spaced numbers of one colour. Count how many such colourings there are for each N from 1 to 8. Search first (for example at oeis.org), say where you looked, and do not call the counts new.

The worked example in brief

The rule. T(n) = n/2 if n is even, and 3n − 1 if n is odd, for positive whole numbers n. A cycle is a loop of numbers that the rule carries round and back to the start. Three cycles are known:

  • the cycle of 1: 1 → 2 → 1 (length 2);
  • the cycle of 5: 5 → 14 → 7 → 20 → 10 → 5 (length 5);
  • the cycle of 17: 18 numbers, from 17 up to 272 and back (length 18).

It is a conjecture (a statement believed to be true but not proved) that every positive start ends in one of these three.

The question. For every start from 1 to N, which cycle does it enter, and how many steps does that take?

Table 1. Starts 1 to N entering each cycle: the count, and its share of N.
N Cycle of 1 Cycle of 5 Cycle of 17
106 (60.00%)4 (40.00%)0 (0.00%)
10038 (38.00%)31 (31.00%)31 (31.00%)
1,000349 (34.90%)306 (30.60%)345 (34.50%)
10,0003244 (32.44%)3213 (32.13%)3543 (35.43%)
100,00033030 (33.03%)32104 (32.10%)34866 (34.87%)
1,000,000327679 (32.77%)323351 (32.34%)348970 (34.90%)

Every start from 1 to 1,000,000 enters one of the three cycles. The slowest is 858341, which takes 553 steps to first land on a cycle member. As a control, the script recomputes every start up to 20,000, and the slowest start, by a slow method with no shortcuts. The two methods agree. All of this comes from verify_2_census.py, which runs in about a second on a laptop.

What the sandbox will do with your repository

A repository is a public folder of your files on a code-hosting site. If you have never made one, open a free account on one of the sites below and upload your scripts, your paper and a README (a file saying what the repository holds). The sandbox is a sealed-off computer that certXiv uses to rerun your code. For reproducible code (on the submission form this is the tier labelled TCB-2) it does exactly this:

  • It copies the newest saved version (a commit) of your repository's default branch. The repository must be public, under 300 MB, and at an address like https://github.com/owner/repo. gitlab.com and codeberg.org work too, but the AI review reads code only from github.com.
  • It looks for Python files whose name starts with verify (or that sit in a folder named anc), and runs the first three in order of their path (digits first, then capital letters, then small letters), stopping at the first that fails. A folder's name counts, so anc/helper.py comes before verify_1.py. So keep at most three scripts, at the top level, named verify_1_...py, verify_2_...py, and keep other Python files out of any folder named anc.
  • Each runs as python3 -I -B yourfile.py with Python 3.12, on one processor with 512 MB of memory.
  • No network and no install step. Only the Python standard library (the modules that come with Python) is available: no numpy, no pip install. A script cannot rely on environment variables (settings on your own computer), because yours are not there, and it cannot import another .py file from your repository: each must be complete in one file.
  • 45 seconds per script. Running out of time fails the check. Files are read-only; only /tmp can be written to, and it holds at most 128 MB.
  • A script passes if it exits with status 0, the signal a program gives when it finishes without error. Any other exit status fails.
  • The sandbox does not read your paper. It is your script's job to compare what it computed with the numbers your paper states, and to exit with a non-zero status if they differ.
  • The last 600 characters of each script's output (error messages included) are kept in the public log on your article's page. A script that runs out of time leaves no output in the log, only a note that it timed out. Print your headline numbers and PASS or FAIL last.

This is how the example checks itself, near the end of verify_2_census.py (shortened here):

    failures = []
    if lengths != EXPECTED_CYCLE_LENGTHS:
        failures.append(f"cycle lengths {lengths}, paper says {EXPECTED_CYCLE_LENGTHS}")
    for n in CHECKPOINTS:
        if table[n] != EXPECTED_COUNTS[n]:
            failures.append(f"N={n}: counts {table[n]}, paper says {EXPECTED_COUNTS[n]}")
        if sum(table[n]) != n:
            failures.append(f"N={n}: counts do not add up to N")
    # ... the slowest start and the slow cross-check are compared here too ...
    if failures:
        for failure in failures:
            print("FAIL:", failure)
        return 1
    print("PASS")
    return 0

The other two tiers open to student authors, formal proofs (TCB-0) and solver certificates (TCB-1), are checked differently and are not covered here.

The paper, section by section

The AI review marks six things, set out in the rubric: definitions (20 points), soundness (25), fidelity, meaning whether your claims match what your code actually checks (20), literature (15), originality (10) and clarity with calibrated claims, meaning claims that go no further than your evidence (10). The example (PDF, LaTeX source) has eight sections. LaTeX is the typesetting language of most maths papers.

  1. Introduction. What is already known, and the one question you answer. Serves definitions (20) and originality (10).
  2. Definitions. Every term pinned down: the rule, a cycle, what counts as a step, whether a range includes its ends. Serves definitions (20).
  3. Method. How the numbers were computed, why any shortcut gives the right answer, and what control would catch a mistake. Serves soundness (25).
  4. Results. The table and the headline numbers, exactly as the script prints them. Serves fidelity (20).
  5. What this does and does not show. A list of claims, a list of things not claimed, and the limitations. Serves clarity and calibrated claims (10).
  6. Related work. Where the problem comes from and who did what, citing only sources you have read. Serves literature (15).
  7. Reproducing this paper. The commands to run, what they need, and the last lines of output to expect. Serves fidelity (20).
  8. Use of AI tools. Required by the journal: see below.

Originality carries 10 of the 100 points. Definitions, soundness and fidelity together carry 65. So most of the mark is for care and honesty, which do not depend on finding something new. That does not make a high score likely: this example has not been reviewed, and nobody can promise you a score. The list shows what the rubric rewards and how the example tries to earn it.

Say only what you showed

The example draws the line like this.

The paper may claim

  • The counts in Table 1.
  • The slowest start up to 1,000,000 is 858341, with 553 steps.
  • No start up to 1,000,000 escapes the three cycles.
  • The three shares are unequal at 1,000,000, and the cycle of 17 has the largest share in every row from N = 10,000 on.

The paper must not claim

  • That the result is new to mathematics. It says the authors know of no source for this table, did not search beyond the three sources cited, and make no claim of priority.
  • That the shares settle towards any limit.
  • That the conjecture is true.
  • Anything about starts above 1,000,000.

References that exist

The example cites three sources, listed in refs.bib. Each was looked up to confirm it exists, then opened, and the statements the paper attributes to it were checked against its text. A fourth source was dropped from the example because its text could not be opened: a reference you cannot read is one you cannot cite.

  1. J. C. Lagarias, “The 3x + 1 Problem and Its Generalizations”, The American Mathematical Monthly 92(1), 3-23, 1985. doi.org/10.2307/2322189
  2. J. C. Lagarias, “The 3x+1 Problem: An Overview”, 2021. arxiv.org/abs/2111.02635
  3. T. Tao, “Almost all orbits of the Collatz map attain almost bounded values”, Forum of Mathematics, Pi 10, e12, 2022. doi.org/10.1017/fmp.2022.8, arxiv.org/abs/1909.03562
  • When you submit, every reference is looked up in public databases, and one that does not exist, or whose title does not match its identifier, stops the submission. Check your list first with the citation checker; it needs no account.
  • Never cite a paper you have not opened. Use each source only for what you are sure it says.

If you used AI tools

AI tools are allowed, and you must disclose them. Say which tools you used, what they did, and what you checked yourself. The example's own disclosure says it was drafted with an AI assistant (Claude), that every result came from running the two scripts, and that each reference was looked up, opened and checked. The title, abstract and paper source are also scanned for leftover chatbot output and for placeholder markers such as “[citation needed]”. Either one stops the submission.

Before you submit

After you submit

  1. Your references are checked at once.
  2. The article is published with an identifier.
  3. The sandbox reruns your code, and the result, pass or fail, is shown on the article's page.
  4. An AI model reads your paper source and, if your repository is on github.com, its files as text (a very large repository only in part). Its review is published with a score.
  5. Private suggestions are emailed to you.

Upload the paper source (.tex or plain text; the main file only, without figures, under 2 MB) on the submission form: without it, the review reads only your abstract. The score is out of 100: each of the six parts is marked from 0 to 5, and the marks are weighted. It is one AI model's reading against the rubric. The verdict band also depends on soundness alone: the top band needs a soundness mark of at least 4 out of 5, and the band called Sound at least 3. Articles whose current version scores 70 or more are eligible for the monthly issue, which holds a limited number (20 at present), highest scores first; the rest are considered again for the next issue. An article that scores less is still published on its own page, with its review.

Use the private suggestions to make a second version (v2): fix what they point to, narrow any claim that went too far, and upload it. The new version is rerun and reviewed again. Old versions and their reviews stay public, so readers can see what changed.

What this is not

  • Not peer review by scientists. Software checks references and reruns code, and an AI model writes the review. No human expert reads your paper.
  • The AI review can be wrong. It can miss an error or report one that is not there.
  • A new journal. certXiv is not a substitute for a recognised peer-reviewed journal or a science fair. This guide compares the places students can publish.
  • No promise about college admission. Nobody can honestly make one.
  • The example is certXiv's. Learn from it, run it, take it apart. Do not submit it, or a lightly changed copy, as your own work.
  • Public and permanent. Your name and your paper are public permanently, with the AI review and its score. Your email address is never shown. The students page has notes for parents.
  • Age and adults. You must be 13 or older. If you are under 18, an adult confirms before a DOI (a permanent identifier for the article) is registered. The full rules are on the policies page.
  • Free at every stage.
  • Teachers with questions can write to editor@certxiv.org.