Note G — a trace through the table

Ada Lovelace's single-pass calculation of B7 (1843)

Data — before any operation

Starting values

Ada's chained equation for her B7 (known as B8 under modern nomenclature)

The ratios Ada's loop builds

Working variables

unit doubler index n term 1 term 1 numerator denominator scratch 1 scratch 2 pass count coefficient term value accumulator ↴
÷ = + ×

Result variables: The Bernoulli Numbers