Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Ratio limits of fibonacci-like series

Stax, 5 bytes òP^↓Φ Run and debug it Same idea as Quintec's answer. Input as a floating point number. Explanation 1gpun+ 1 start with 1 gp apply the following till a fixpoint...

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

Answer
#2: Post edited by user avatar Razetime‭ · 2021-02-19T06:38:21Z (almost 4 years ago)
  • # [Stax](https://github.com/tomtheisen/stax), 5 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
  • òP^↓Φ
  • [Run and debug it](https://staxlang.xyz/#p=95505e19e8&i=1.0%0A2.0%0A3.0%0A4.0%0A5.0&m=2)
  • Same idea as Quintec's answer.
  • ## Explanation
  • ```
  • 1gpun+
  • 1 start with 1
  • gp apply the following till a fixpoint:
  • u reciprocal
  • n+ add the input
  • # [Stax](https://github.com/tomtheisen/stax), 5 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
  • òP^↓Φ
  • [Run and debug it](https://staxlang.xyz/#p=95505e19e8&i=1.0%0A2.0%0A3.0%0A4.0%0A5.0&m=2)
  • Same idea as Quintec's answer.
  • Input as a floating point number.
  • ## Explanation
  • ```
  • 1gpun+
  • 1 start with 1
  • gp apply the following till a fixpoint:
  • u reciprocal
  • n+ add the input
#1: Initial revision by user avatar Razetime‭ · 2021-02-19T06:37:48Z (almost 4 years ago)
# [Stax](https://github.com/tomtheisen/stax), 5 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)

	òP^↓Φ

[Run and debug it](https://staxlang.xyz/#p=95505e19e8&i=1.0%0A2.0%0A3.0%0A4.0%0A5.0&m=2)

Same idea as Quintec's answer.

## Explanation
```
1gpun+
1        start with 1
 gp      apply the following till a fixpoint:
   u     reciprocal
    n+   add the input