Mathematics I / Programming for Mathematics
Practice question · Put in order

Order the steps of using a program to investigate a conjecture.

Hints
  1. A vague statement cannot be tested by machine at all.
  2. The computation is the middle of the process, never the end of it.
Show the answer
  1. State the conjecture precisely enough to test
  2. Write a program that checks it on many cases
  3. Run it and inspect any cases that fail
  4. If none fails, record the result as evidence rather than proof
  5. Seek a general proof, or a counterexample beyond the range tested
Why

Precision comes first because the machine needs a decidable question; the computation supplies evidence or a counterexample; and the mathematics resumes afterwards. Euler's prime-generating polynomial survived 40 cases and then failed, evidence never closes the question.

Read the lesson: Programming for Mathematics →

Practise Programming for Mathematics

The app has 6 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Programming for Mathematics