The luck of the 4

Research output: Contribution to journalArticlepeer-review


The setting up of an arithmetic expression to generate as many consecutive integers as possible using digit 4 alone at most four times, was discussed. The expression may include operators such as addition, substraction, multiplication, division, square root, exponentiation, concatenation, decimal 0.4, decimal repeat, factorial and parentheses. Expressions for the numbers 1 through 10 under above constraints could be derived. Expressions for 11 to 40 using at most four 4s per integer were found.

Original languageEnglish (US)
Pages (from-to)12
Number of pages1
JournalDr. Dobb's Journal
Issue number1
StatePublished - Jan 2005

ASJC Scopus subject areas

  • Computer Graphics and Computer-Aided Design
  • Software

Cite this