Skip to main content
Logo image

PreTeXt Sample Book: Abstract Algebra (SAMPLE ONLY)

Exercises 4.6 Programming Exercises

1.

Write a computer program that will write any decimal number as the sum of distinct powers of 2. What is the largest integer that your program will handle?

2.

Write a computer program to calculate ax(modn) by the method of repeated squares. What are the largest values of n and x that your program will accept?
You have attempted 1 of 1 activities on this page.