These street signs were on the corner of Farmer Avenue and 13th Street in Tempe, Arizona.

The street signs say...

+--------------------+ | W. 13th St 400 -> | | Farmer Ave <- 1300 | | STOP | | 4-Way | +--------------------+ the numbers are: 4 400 13 1300 the math is: 400 / 4 x 13 = 1300 pi to two digits: 3.14 pi to its first 0 digit: 3.14159265358979323846264338327950 [exercise] Digitize the numbers in the street sign. Print 'n' digits of pi until digitized digits are used. output is pi having the decimal digits containing four zeros, two ones, two threes and two fours. --- to be completed stuff --- digitize({ 13, 400, 1300, 4 }) = { 1, 3, 4, 0, 0, 1, 3, 0, 0, 4 } sort(UP, { 1, 3, 4, 0, 0, 1, 3, 0, 0, 4 }) = { 0, 0, 0, 0, 1, 1, 3, 3, 4, 4 } remove(0, { 0, 0, 0, 0, 1, 1, 3, 3, 4, 4 }) = { 1, 1, 3, 3, 4, 4 } uniq({ 1, 1, 3, 3, 4, 4 }) = { 1, 3, 4 } # uniq is short for unique swap(1, 3, { 1, 3, 4 }) = { 3, 1, 4 }

**Creator:** Gerald D. Thurman
[gthurman@gmail.com]

**Created:** 09 May 2007

This work is licensed under a Creative Commons License.