Skip to Content
Fibonacci and Catalan Numbers: An Introduction
book

Fibonacci and Catalan Numbers: An Introduction

by Ralph P. Grimaldi
March 2012
Beginner to intermediate
380 pages
8h 51m
English
Wiley
Content preview from Fibonacci and Catalan Numbers: An Introduction

Chapter 8

Chess Pieces on Chessboards

This time we want to use our chessboards to study how to place certain types of chess pieces in prescribed ways.

Example 8.1: In the game of chess, a king can move (when positioned on a standard 8 × 8 chessboard) one space to the left or right, or one space north or south, or one space in one of the four diagonal directions: northeast, southeast, northwest, or southwest. If an opponent has a chess piece in any of these (possibly) eight neighboring positions, then the king can take that piece.

Here we shall restrict ourselves to a 1 × n chessboard where n is a positive integer. Our objective is to count the number of ways one can place nontaking kings on such a chessboard. For example, in the case of n = 5, we can label the squares of the chessboard from 1 to 5, as shown in Fig. 8.1(a). In Fig. 8.1(b), we find four of the ways we can place nontaking kings on this chessboard. By simply listing the labels of the squares where we can place the nontaking kings, we find the following possibilities:

img

So there are 13(= F7) ways in which we can place nontaking kings on a 1 × 5 41 chessboard. If we let kn count the number of ways we can do this for a 1 × n chessboard, we could derive the recurrence relation for kn as we did earlier in many ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Primes of the Form x2+ny2: Fermat, Class Field Theory, and Complex Multiplication

Primes of the Form x2+ny2: Fermat, Class Field Theory, and Complex Multiplication

David A. Cox

Publisher Resources

ISBN: 9780470631577Purchase book