Department page.     Course schedule.     Homework due.     Dr. Forcey's site.     Syllabus     Study Resources.     MyAkron.     Credits.

Math n: Combinatorial mathematics and Graph Theory with JavaScript; Summer 2026.

    1.1 JavaScript | 1.2 Games | 1.3 Sets 1 | 2.1 Combinatorics 1 | 2.2 Combinatorics 2 | 2.3 Combinatorics 3 |
3.1 Combinatorics 4 | 3.2 Combinatorics 5 | 3.3 Combinatorics 6 | 3.4 Combinatorics 7 | 4.1 Combinatorics 8 | 4.2 Combinatorics 9 | 4.3 Combinatorics 10 | 4.4 Combinatorics 11 |
    5.1 Combinatorics 12 | 5.2 Combinatorics 13 | 5.3 Combinatorics 14 | 6.1 Graph theory 1 | 6.2 Graph theory 2 |


Instructor: Dr. Stefan Forcey Textbook: Eloquent Javascript by Haverbeke (free, see below), Winning Ways for your Mathematical Plays by Conway, and Introductory Combinatorics by Brualdi.

Course Syllabus.
The syllabus will include information about grading policies. You should definitely read it.
Here's an approximate schedule of what we'll be doing this summer.

Course Outline:


Homework and Quizzes
Homework will be posted here on this webpage, along with either the due date for the
homework to be turned in or more usually the date for the quiz (if the hw is not turned in.)
No makeup quizzes will be given, but 15 quiz/homework points will be dropped.


    1.1 JavaScript (n videos)Top menu | Next.

    JavaScript:


    • Easy to get started: just write a program in text (samples follow) and save as .htm. Then open with a browser.
      JS is still the most popular language among developers.

    • Below are some easy sample programs to get started! To run the code, click the link. To see the code, add this term to the beginning of each URL: view-source:
      ...or after clicking on a linked program then click on tools and developer tools, and then look at elements (in Chrome) or script (in Explorer).

    • This one just prints Hello World to the screen and the console. To see the latter, open tools and developer tools, and then look at console.

    • This one calculates the value of sin(x)/x for any input.

    • This one animates sin(x)/x with zoomability.

    • For really learning JavaScript I recommend the free book Eloquent JavaScript by Marijn Haverbeke.

    • Here is a great tutorial by Matt Mongeau for writing javascript games.
      Here's the Pvs.P Awesome Pong variation wawesome and I wrote using Mr. Mongeau's code:
      top player uses a-w-s-d, bottom uses arrows; first to 10 points wins.

    Proofs and Games
    1.2 Games (3 videos)Top menu | Previous | Next.
  • Proving things:





  • Games:




  • Snaky: winner or loser

  • Is the 6-polyomino Snaky achievable (by player 1) on an infinite grid,
    or can it be blocked by player 2?
  • Combinatorial games [ wiki ]
  • What is the smallest grid on which Snaky can be achieved by player 1? [ wiki ] (Harary)

  • Specific Question: Can Snaky win on a 9 x 9 board?
  • Best known answer: Snaky is a loser on an 8 x 8 board. [ Research Gate ]

  • Set theory 1:


    1.3 Sets 1 (4 videos)Top menu | Previous | Next.
    Download pdf here: Notes: Review 1 posted Aug 24

    Then watch the explanations!
    In the next 4 short videos I talk through the introduction to set theory.









  • Set theory 2:


    Sets 2 (5 videos)Top menu | Previous | Next.
    Basic set operations. Download pdf here: Notes: Review 2 posted Aug 24

    Then watch the explanations!











  • Set theory 3:


    Sets 3 (2 videos)Top menu | Previous | Next.
    More set operations. Download pdf here: Notes: Review 3 posted Aug 24

    Then watch the explanations!

    Additional notes:
    1) The complement of the empty set is the whole set U ( universe).
    Complement of {} = U.
    2) Subtracting works even when there is no overlap: it is just the whole first set, since there is nothing to subtract.
    A - B = A, when A intersect B = {}.
    3) A - {} = A.
    4) A union {} = A.
    5) A intersect {} = {}
    6) {} - A = {}






    Download: Quiz 0 Not to turn in.
    Key to Quiz 0


    2.1 Combinatorics 1 (6 videos)Top menu | Previous | Next.
  • Homework 1: Not to be turned in.
    • Chapter 2: 1, 4, 7, 8, 9, 13, 14, 23, 28(a)
    • Chapter 2: 21, 28 (b), 32, 33, 34, 37, 38, 43, 45, 55
  • Basic Counting. Download pdf here: Notes: Basic Counting posted.

    Then watch the explanations.

  • Duplicate notes of above, with answers. Download pdf here: page 1 and page 2

    Here is the second part. Download pdf here:
    Basic Counting 2. Notes posted.
    Practice problems.
    Then watch the explanations.




    ***Correction: at the very last line, should have read...({7,q},4),({7,q},5),({7,q},q)...










    2.2 Combinatorics 2 (5 videos)Top menu | Previous | Next.
    Download: Take home quiz 1a. Due Sep 7 .


    Here is the lecture. Download pdf here:
    More counting: Notes posted.

    Then watch the explanations.









    And the final answer did turn out to be 22,134.


    Here is the second part. Download pdf here:
    Part 2: Notes posted.

    Then watch the explanations.





    2.3 Combinatorics 3 (1 video)Top menu | Previous | Next.
  • Download: Take home quiz 1b. due Sep 14 .
    Key here: Key to quiz 1b.

    Here is the lecture. Download 2 pdfs here:
    Problems posted.
    Solutions posted.
    Then watch the explanations.





    3.1 Combinatorics 4 (3 videos)Top menu | Previous | Next.
    Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanations.









    3.2 Combinatorics 5 (5 videos)Top menu | Previous | Next.
    Here is the lecture. Download notes here:
    Notes posted part 1
    Part 2:
    Notes posted part 2
    Then watch the explanation.







    Take home quiz 1c .
    Download here:
    Quiz 1c

    Key here: Key to quiz 1c.

    Download practice problems here:
    Practice problems posted.

    Then watch the explanations.







    3.3 Combinatorics 6 (4 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.

  • Take home quiz 2 .
    Download here:
    Quiz 2

    Key here: Key to quiz 2.











    3.4 Combinatorics 7 (5 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.













    4.1 Combinatorics 8 (5 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.

  • Take home quiz 3 due Oct 5.
    Download here:
    Quiz 3

    Key here: Key to quiz 3.













    4.2 Combinatorics 9 (4 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.

  • Take home quiz 4 due Oct 12 .
    Download here:
    Quiz 4

    Key here: Key to quiz 4.











    4.3 Combinatorics 10 (4 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.










      Book problems
    • Chapter 5: Problems 6, 7, 8, 9, 15
      (hint - use the binomial theorem and differentiate something!), 23, 24, 38, 40.
    • Chapter 6: Problems 2, 3, 5, 6, 8, 9

    4.4 Combinatorics 11 (10 videos)Top menu | Previous | Next.
  • Download practice problems here:
    Practice problems posted.
    and Answers to the problems
    Also study quizzes and hw!
    Here's the Map of Parma (see page 2).

    Here's some additional chapter 5 solutions.


    TEST 1 ENDS HERE.



    5.1 Combinatorics 12 (2 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.







    5.2 Combinatorics 13 (2 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.

  • Take home quiz 5 due: Oct 31 .
    Download here:
    Quiz 5

    Key here: Key to quiz 5.





  • Chapter 6: Book Problems 11, 15, 25, 26, 27


  • 5.3 Combinatorics 14 (2 videos)Top menu | Previous | Next.
  • Here is the lecture. Download notes here:
    Notes posted.
    Then watch the explanation.









    6.1 Graph Theory 1 (2 videos) Top menu | Previous | Next.

  • Here is the lecture. Download pdf here:
    Notes posted

  • Take home quiz 8 due
    Download here:
    Quiz 8

    Key here: Key to quiz 8.







    Graph Theory 2 (2 videos) Top menu | Previous | Next.

  • Here is the lecture. Download pdf here:
    Notes posted









  • 6.2 Graph Theory 3 ( 0 videos) Top menu | Previous.

  • Here is the lecture. Download pdf here:
    Notes posted.


Resources.


CREDIT:
The text of this page was adapted, with permission, from an original course site by J.P. Cossey.