Software
Why a number is prime
Autor
Zeleny, Enrique
Resumen
Knowledge about number theory and prime numbers Move the n slider to see that if n is a prime number, n squares cannot be arranged into a rectangular array unless the width or length is 1. That is, it is not possible to represent a prime as the product of two integers axb with a,b>1.
Let q and r be the quotient and remainder of the division of n by d. (That is, for each n and d, let n=dq+r, where r and q are positive integers and 0<=r<d.) This Demonstration shows n as a dxq rectangle of blue squares plus an additional r red squares.
If n is not prime, there may be some d that make red squares appear, but that only means that particular d does not divide n; there are other d diferent of 1, n that do divide n, in which case no red squares appear Componente Curricular::Ensino Fundamental::Séries Finais::Matemática