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

77%
+5 −0
Challenges Ratio limits of fibonacci-like series

Definition $F_{n}\left(0\right)=0$ $F_{n}\left(1\right)=1$ $F_{n}\left(x\right)=n\cdot F_{n}\left(x-1\right)+F_{n}\left(x-2\right)$ For example: $F_{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\ri...

3 answers  ·  posted 3y ago by rak1507‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf sequence
#2: Post edited by user avatar General Sebast1an‭ · 2021-08-15T13:13:12Z (over 3 years ago)
Ratio limits of fibonacci-like series
  • # Definition
  • \$F_{n}\left(0\right)=0\$
  • \$F_{n}\left(1\right)=1\$
  • \$F_{n}\left(x\right)=n\cdot F_{n}\left(x-1\right)+F_{n}\left(x-2\right)\$
  • For example:
  • \$F_{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\right]\$
  • \$F_{2}=\left[0,1,2,5,12,29,70,169,408,985...\right]\$
  • \$F_{3}=\left[0,1,3,10,33,109,360,1189,3927...\right]\$
  • # Challenge
  • Given n, find the limit of the ratio between consecutive terms, correct to at least the first 5 decimal places.
  • # Test Cases
  • ```
  • 1 -> 1.61803...
  • 2 -> 2.41421...
  • 3 -> 3.30277...
  • 4 -> 4.23606...
  • ```
  • # Scoring
  • This is code-golf. Shortest answer in each language wins.
  • # Definition
  • \$F_{n}\left(0\right)=0\$
  • \$F_{n}\left(1\right)=1\$
  • \$F_{n}\left(x\right)=n\cdot F_{n}\left(x-1\right)+F_{n}\left(x-2\right)\$
  • For example:
  • \$F_{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\right]\$
  • \$F_{2}=\left[0,1,2,5,12,29,70,169,408,985...\right]\$
  • \$F_{3}=\left[0,1,3,10,33,109,360,1189,3927...\right]\$
  • # Challenge
  • Given n, find the limit of the ratio between consecutive terms, correct to at least the first 5 decimal places.
  • # Test Cases
  • ```
  • 1 -> 1.61803...
  • 2 -> 2.41421...
  • 3 -> 3.30277...
  • 4 -> 4.23606...
  • ```
  • # Scoring
  • This is <a class="badge is-tag">code-golf</a>. Shortest answer in each language wins.
#1: Initial revision by user avatar rak1507‭ · 2021-02-19T00:43:31Z (over 3 years ago)
Ratio limits of fibonacci-like series
# Definition

\$F_{n}\left(0\right)=0\$

\$F_{n}\left(1\right)=1\$

\$F_{n}\left(x\right)=n\cdot F_{n}\left(x-1\right)+F_{n}\left(x-2\right)\$

For example:

\$F_{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\right]\$

\$F_{2}=\left[0,1,2,5,12,29,70,169,408,985...\right]\$

\$F_{3}=\left[0,1,3,10,33,109,360,1189,3927...\right]\$


# Challenge

Given n, find the limit of the ratio between consecutive terms, correct to at least the first 5 decimal places. 

# Test Cases

```
1 -> 1.61803...
2 -> 2.41421...
3 -> 3.30277...
4 -> 4.23606...
```

# Scoring

This is code-golf. Shortest answer in each language wins.