Puzzle #4 – Deceptively Simple Sequence

Here’s a really short one. What’s the nth term of this deceptively simple looking sequence?

1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6…

I’d like a function please, something that I could graph.

 

Extension: What is the nth term of a sequence with Z identical numbers in a row. The sequence above, for instance has Z = 2. A sequence of Z = 5 would look like this:

1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, …

Advertisements

8 thoughts on “Puzzle #4 – Deceptively Simple Sequence

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