O'Reilly logo

Elementary Number Theory with Programming by Jeanine Meyer, Marty Lewinter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3PASCAL’S TRIANGLE

In this chapter, we discuss Pascal’s triangle and explain the relevance of its entries to number theory.

FACTORIALS

As you are probably aware, n!, or n factorial, is the product of the first n positive integers, that is,

images

We define 0! to be 1. There are n! permutations of n distinct objects.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required