create account

Some variations of Recamán's Sequence by romualdd

View this thread on: hive.blogpeakd.comecency.com
· @romualdd · (edited)
$6.80
Some variations of Recamán's Sequence
<div class="text-justify">

![untitled.png](https://cdn.steemitimages.com/DQmYCxPBJfDu3kNdtnxa2tckfswt9TpHh7a1pyTXmA6ur3P/untitled.png)


Inspired by Alex Bellos, who presented clever illustration of Recamán's Sequence in recent video from Numberphile, I decided to implement this sequence in MATLAB/GNU Octave enviroment and get some other views of this sequence. And, what is the most important - get much more terms and see how they looks like.


The general idea of Recamán's Sequence is substracting the present index of the sequence from previous term every time we can do this so the result is over than zero. And second condition: the result have to be new term in the sequence, terms cannot be repeated. In other cases we define new term by adding present index, not substracting. Let’s see how it looks like in math expression:

![sequence.PNG](https://cdn.steemitimages.com/DQmTSx4AhRTnV2VzupVWXVSPxCd1hxjhTEKCxX3HwcfRUN3/sequence.PNG)


As you can see, it is not difficult to express. Using this formulas, we can generate the Recamán's Sequence, and its first few terms are: 0, 1, 3, 6, 2, 7, 13, 20, 12, 21, 11, 22, 10, …

On first sight, it is hard to see something alluring in this sequence. Just some numbers. But the beauty of mathematics lies in expressing apparent universality in many ways. Some of them are very interesting. Like this one. Let’s draw some graphs.

![bargraph1.png](https://cdn.steemitimages.com/DQmd9ZdMxA5DxQTNroUNUehUKPQiQb4F9J2X5NmWKeXsySK/bargraph1.png)<center>*Bar graph of 3500 terms in the sequence*</center>

<hr>

![black1.png](https://cdn.steemitimages.com/DQmWhBv3iyhuAGqeA3tdbRWhqHvcDbp571a4zbf2eqkbUe7/black1.png)
<center>*Circle graph of 32 terms in the sequence in black color*</center>
<hr>

![color1.png](https://cdn.steemitimages.com/DQma54iWT8A7qPd4xthSdDuvkQRsWz3mwH1jWCYHSPzx2Sf/color1.png)
<center>*Colorized*</center>
<hr>

![100color.png](https://cdn.steemitimages.com/DQmS3whbXk874BeN6r46gEMKSETqfk2HQiAUFvZDz6vSSw8/100color.png)<center>*Circle graph of 100 terms in the sequence, colorized*</center>
<hr>

![cart2pcolor.png](https://cdn.steemitimages.com/DQmc4QCgXPaXpXuHRRytwveJsA7j6vGYssr7NHUiJiUAbre/cart2pcolor.png)<center>*Circle graph of 32 terms in the sequence, colorized (the cartesian coordinates are transformed into polar)*</center>
<hr>

![100colorblocked.png](https://cdn.steemitimages.com/DQmNMSGu3fLXrBRxhDwiUuTZ3gXPjrJ4YW2R87W1etUMM1v/100colorblocked.png)<center>*Circle graph of 100 terms in the sequence, colorized (plot window is blocked by arbitrary values)*</center>
<hr>


If we use semicircles to link neighboring terms of the sequence and we assume that we change angle from 0 to &#960; and from &#960; to 2&#960; alternately, we can get such pictures. Radius of each circle is of course related to terms and it is present term minus previous term divided by 2.

As we can see, in maths we can find the element of beauty.

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 62 others
👎  
properties (23)
authorromualdd
permlinksome-variations-of-recaman-s-sequence
categorysteemstem
json_metadata{"tags":["steemstem","maths","mathematics","science","numbers"],"image":["https://cdn.steemitimages.com/DQmYCxPBJfDu3kNdtnxa2tckfswt9TpHh7a1pyTXmA6ur3P/untitled.png","https://cdn.steemitimages.com/DQmTSx4AhRTnV2VzupVWXVSPxCd1hxjhTEKCxX3HwcfRUN3/sequence.PNG","https://cdn.steemitimages.com/DQmd9ZdMxA5DxQTNroUNUehUKPQiQb4F9J2X5NmWKeXsySK/bargraph1.png","https://cdn.steemitimages.com/DQmWhBv3iyhuAGqeA3tdbRWhqHvcDbp571a4zbf2eqkbUe7/black1.png","https://cdn.steemitimages.com/DQma54iWT8A7qPd4xthSdDuvkQRsWz3mwH1jWCYHSPzx2Sf/color1.png","https://cdn.steemitimages.com/DQmS3whbXk874BeN6r46gEMKSETqfk2HQiAUFvZDz6vSSw8/100color.png","https://cdn.steemitimages.com/DQmc4QCgXPaXpXuHRRytwveJsA7j6vGYssr7NHUiJiUAbre/cart2pcolor.png","https://cdn.steemitimages.com/DQmNMSGu3fLXrBRxhDwiUuTZ3gXPjrJ4YW2R87W1etUMM1v/100colorblocked.png"],"app":"steemit/0.1","format":"markdown"}
created2018-06-20 21:08:57
last_update2018-06-20 21:44:12
depth0
children7
last_payout2018-06-27 21:08:57
cashout_time1969-12-31 23:59:59
total_payout_value5.166 HBD
curator_payout_value1.638 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,918
author_reputation13,652,074,114,198
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,546,236
net_rshares3,334,850,370,891
author_curate_reward""
vote details (127)
@a-a-a ·
Upvote this for me please? https://steemit.com/christianity/@bible.com/verse-of-the-day-hebrews-4-16-nlt
properties (22)
authora-a-a
permlinkre-romualdd-some-variations-of-recaman-s-sequence-20180620t210927141z
categorysteemstem
json_metadata{"tags":["steemstem"],"links":["https://steemit.com/christianity/@bible.com/verse-of-the-day-hebrews-4-16-nlt"],"app":"steemit/0.1"}
created2018-06-20 21:09:30
last_update2018-06-20 21:09:30
depth1
children0
last_payout2018-06-27 21:09:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation-3,087,833,994,273
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,546,302
net_rshares0
@mathowl ·
Really love your computer generated images of the sequence. Recently there was a numberphile video about the  Recamán  sequence.  -> https://www.youtube.com/watch?v=FGC5TdIiT9U&t=492s 
Besides a visual representation a pretty neat way of thinking about it is terms of notes on a keyboard. The above video also contains a sound bite of the sequence :)
👍  
properties (23)
authormathowl
permlinkre-romualdd-some-variations-of-recaman-s-sequence-20180622t142450259z
categorysteemstem
json_metadata{"tags":["steemstem"],"image":["https://img.youtube.com/vi/FGC5TdIiT9U/0.jpg"],"links":["https://www.youtube.com/watch?v=FGC5TdIiT9U&t=492s"],"app":"steemit/0.1"}
created2018-06-22 14:24:48
last_update2018-06-22 14:24:48
depth1
children1
last_payout2018-06-29 14:24:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length350
author_reputation44,993,635,814,620
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,779,563
net_rshares668,339,110
author_curate_reward""
vote details (1)
@romualdd ·
Thank you very much! I saw this video from Numberphile and it was my main inspiration to do some numerical experiments. Music is not far from math really and this video is excellent example :)
properties (22)
authorromualdd
permlinkre-mathowl-re-romualdd-some-variations-of-recaman-s-sequence-20180622t163249244z
categorysteemstem
json_metadata{"tags":["steemstem"],"app":"steemit/0.1"}
created2018-06-22 16:32:51
last_update2018-06-22 16:32:51
depth2
children0
last_payout2018-06-29 16:32:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length192
author_reputation13,652,074,114,198
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,794,655
net_rshares0
@steemitboard ·
Congratulations @romualdd! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@romualdd) Award for the number of upvotes

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the [last post](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-serbia-vs-brazil) from @steemitboard!**

---
**Participate in the [SteemitBoard World Cup Contest](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-collect-badges-and-win-free-sbd)!**
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: [@good-karma](https://v2.steemconnect.com/sign/account-witness-vote?witness=good-karma&approve=1) and [@lukestokes](https://v2.steemconnect.com/sign/account-witness-vote?witness=lukestokes.mhth&approve=1)

---

> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-romualdd-20180626t211150000z
categorysteemstem
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-06-26 21:11:48
last_update2018-06-26 21:11:48
depth1
children0
last_payout2018-07-03 21:11:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,277
author_reputation38,975,615,169,260
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,397,887
net_rshares0
@teekingtv ·
Mathematics look like magic to me... Yes, because I am not really into it. 

Good post from @romualdd.

---

**I am @teekingtv and I write STEM.**
👍  
properties (23)
authorteekingtv
permlinkre-romualdd-some-variations-of-recaman-s-sequence-20180622t143653388z
categorysteemstem
json_metadata{"tags":["steemstem"],"users":["romualdd","teekingtv"],"app":"steemit/0.1"}
created2018-06-22 14:37:03
last_update2018-06-22 14:37:03
depth1
children1
last_payout2018-06-29 14:37:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length146
author_reputation68,052,651,881,740
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,781,085
net_rshares661,377,245
author_curate_reward""
vote details (1)
@romualdd ·
Thanks! I will try to present other mathematical problems in simple way :)
properties (22)
authorromualdd
permlinkre-teekingtv-re-romualdd-some-variations-of-recaman-s-sequence-20180622t173916225z
categorysteemstem
json_metadata{"tags":["steemstem"],"app":"steemit/0.1"}
created2018-06-22 17:39:18
last_update2018-06-22 17:39:18
depth2
children0
last_payout2018-06-29 17:39:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length74
author_reputation13,652,074,114,198
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,802,031
net_rshares0
@utopian-io ·
#### Hi @romualdd!

Your post was upvoted by utopian.io in cooperation with steemstem - supporting knowledge, innovation and technological advancement on the Steem Blockchain.

#### Contribute to Open Source with utopian.io
Learn how to contribute on <a href="https://join.utopian.io">our website</a> and join the new open source economy.

**Want to chat? Join the Utopian Community on Discord https://discord.gg/h52nFrV**
properties (22)
authorutopian-io
permlink20180622t142530355z
categorysteemstem
json_metadata{"tags":["utopian.tip"],"app":"utopian-io"}
created2018-06-22 14:25:30
last_update2018-06-22 14:25:30
depth1
children0
last_payout2018-06-29 14:25:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length422
author_reputation152,955,367,999,756
root_title"Some variations of Recamán's Sequence"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,779,653
net_rshares0