This slide deck can work both as an aide mémoire (memory jogger), or as a first (not completely trivial) example of using left folds, left scans and iteration, to implement mathematical induction.
(for best quality images, either download or view here: https://philipschwarz.dev/fpilluminated/?page_id=455)
Scala code for latest version: https://github.com/philipschwarz/fp-fold-scan-iterate-triad-a-first-example-scala
Keywords: fold, folding, fp, functional programming, haskell, initial segments, inits, iterate, iterating, iteration, left fold, left scan, list, mathematical induction, recursion, scala, scan, scanning, séquence, tail recursion