taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Learn · Volume 1 · in the Volume 1 course

Section 1.2.4. Integer functions and elementary number theory

46 exercises: 46 with a written solution, 33 stated in Lean, 33 proved in Lean.

1. Read first

The companion chapter builds on these. Read the ones you do not know yet.

2. Read the section

Read Section 1.2.4 in your copy of the book. Then read the companion chapter Integer functions and elementary number theory (a draft): it explains each item in the words of the handbook, with examples and proofs. The items of the section and their status.

3. Work the exercises

The exercises of this section train three skills. The first is to prove facts about the floor and the ceiling with the equivalences of Exercise 3. The second is to use the laws of congruence, up to Fermat's and Euler's theorems and the multiplicative functions. The third is to sum floors, from the small cases of Exercises 33 to 36 to the reciprocity laws of Exercises 37, 45 and 46.

Do Exercises 1, 2, 5 and 8 to 13 first: they fix the meaning of the floor, the ceiling and the remainder for negative and real arguments. Then do Exercises 3, 4, 6, 7, 14 to 23 and 25 to 28 in the order of their ratings. Take Exercises 29 to 34 next, then the sums of Exercises 35, 36 and 41 to 44, and last Exercises 37 to 39, 45 and 46. Exercise 24 is a discussion, and Exercise 40 is an open research problem.

From the Solutions volume of the handbook. The source.

The list starts with the lowest rating. Try each exercise on paper first. Its page has the hints one at a time, the solution behind a click, and the Lean status.

ExerciseRatingKindSolutionLean
1.2.4-100K3written checkedproved
1.2.4-800K3written checkedproved
1.2.4-1100K3written checkedproved
1.2.4-1200K3written checkedproved
1.2.4-13M00K3written checkedproved
1.2.4-2 recommended01K3written checkedproved
1.2.4-25M02K1written checkedproved
1.2.4-905K3written checkedproved
1.2.4-3M10K1written checkedproved
1.2.4-4 recommendedM10K1written checkedproved
1.2.4-10 recommended10K3written checkedproved
1.2.4-1510K1written checkedproved
1.2.4-16M10K1written checkedproved
1.2.4-19 recommendedM10K1written checkedproved
1.2.4-22 recommendedM10K1written checkedproved
1.2.4-23M10K1written checkedproved
1.2.4-14 recommended12K3written checkedproved
1.2.4-7M15K1written checkedproved
1.2.4-17M15K1written checkedproved
1.2.4-18M15K1written checkedproved
1.2.4-20M15K1written checkedproved
1.2.4-26M15K1written checkedproved
1.2.4-27M15K1written checkedproved
1.2.4-516K3written checkedproved
1.2.4-32M18K1written checkedproved
1.2.4-33M18K3written checkedproved
1.2.4-6 recommended20K2written checkedproved
1.2.4-24 recommendedM20informalwritten checkednot stated yet
1.2.4-35 recommendedM20K1written checkednot stated yet
1.2.4-34 recommendedM21K3written checkedproved
1.2.4-21M22K1written checkedproved
1.2.4-29M22K1written checkedproved
1.2.4-31M22K1written checkedproved
1.2.4-36M23K1written checkednot stated yet
1.2.4-41M23K3written checkednot stated yet
1.2.4-43M23K3written checkednot stated yet
1.2.4-42M24K1written checkednot stated yet
1.2.4-44M24K1written checkednot stated yet
1.2.4-28 recommendedM25K1written checkedproved
1.2.4-38M26K1written checkednot stated yet
1.2.4-45 recommendedM28K1written checkednot stated yet
1.2.4-46M29K3written checkednot stated yet
1.2.4-30M30K1written checkedproved
1.2.4-37 recommendedM30K1written checkednot stated yet
1.2.4-39HM35K1written checkednot stated yet
1.2.4-40HM46K9written checkednot stated yet

Something is wrong? Report it.