Math Hacks for Scratch placeholder cover

Math Hacks for Scratch

by Michael Mays
July 2024, 240 pp.
ISBN-13: 
9781718503380
Full Color
Use coupon code PREORDER to get 25% off!

Download Chapter 2: Exploring Divisibility and Primes

Scratch is mainly used to learn programming and design computer games, but it has plenty of other useful applications—like solving math problems. This book reveals the block-based coding system’s mathematical superpowers, guiding you through over 20 hands-on projects that investigate a variety of interesting numerical puzzles. You’ll quickly find that core math concepts, like number representations, divisibility, and cryptography, are fun to code using Scratch. 
 
In addition to learning how to hack Scratch to get it to work with numbers in unusual ways, you’ll discover efficient algorithms for making time-consuming computations a snap. Along the way, you'll see how the right mathematical or programming trick can simplify a seemingly complex task, as you think through bonus coding challenges that further promote independent experimentation while improving both your math and programming skills.
Author Bio 

Michael Mays has a PhD in mathematics from Penn State University. His teaching career at West Virginia University spanned 40 years, including administrative posts as Director of the Institute for Math Learning and Chair of the Department of Statistics, and an appointment as Eberly Teaching Professor. He has had research appointments at the University of Queensland in Brisbane, Australia and the University of the Witwatersrand in Johannesburg, South Africa. He is the author of 59 research papers and technical reports on number theory, combinatorics, and mathematics education.

Table of contents 

INTRODUCTION
CHAPTER 1: WHAT COMPUTERS THINK ABOUT NUMBERS
CHAPTER 2: EXPLORING DIVISIBILITY AND PRIMES
CHAPTER 3: SPLITTING NUMBERS WITH PRIME FACTORIZATION
CHAPTER 4: FINDING PATTERNS IN SEQUENCES
CHAPTER 5: FROM SEQUENCES TO ARRAYS
CHAPTER 6: MAKING CODES, AND CRACKING THEM TOO
CHAPTER 7: EXPERIMENTS IN COUNTING
CHAPTER 8: THREE HELPINGS OF PI
CHAPTER 9: WHAT NEXT?
APPENDIX: PROGRAMMING CHALLENGE HINTS

The chapters in red are included in this Early Access PDF.

Reviews 

"Inspired by the author’s grandchildren, this book offers up a playful approach to mathematics learning using the block-based coding language pioneered by Scratch. Dr. Michael Mays has done a compelling job of using a creative coding platform to enliven and enrich young people’s engagement with math, by using coding to engage with numbers, puzzles, and patterns."

—Margaret Honey, President & CEO, Scratch Foundation