Consecutive 1s

January 19, 2009 at 10:18 am Leave a comment

Give me a recursive function definition which computes the number of sequences of n binary digits that do not contain two 1s in a row.

Advertisements

Entry filed under: Puzzles.

Who did it? The Bridegroom

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Blog Stats

  • 4,036 hits

Recent Comments


%d bloggers like this: