Linked Questions

29 votes
36 answers
7k views

The Fibtraction sequence (as I call it) is similar to the Fibonacci sequence except, instead of adding numbers, you subtract them. The first few numbers of this challenge are: ...
totallyhuman's user avatar
  • 17.4k
13 votes
37 answers
6k views

There is a well known question here that asks for a short (least characters) fibonacci sequence generator. I would like to know if someone can generate the first N elements only, of the fibonacci ...
Warren  P's user avatar
  • 249
5 votes
4 answers
341 views

Background We all know the famous Fibonacci sequence, where each term is the sum of the previous two, with the first term being 0 and the second one being ...
Mr. Xcoder's user avatar
  • 42.9k
4 votes
1 answer
2k views

Background of Lucas Numbers The French mathematician, Edouard Lucas (1842-1891), who gave the name to the Fibonacci Numbers, found a similar series occurs often when he was investigating Fibonacci ...
Belfield's user avatar
  • 611
-4 votes
4 answers
605 views

Your goal is to calculate the sum of Fibonacci series from n th term to m th term (including both terms). No use of / * % or mathematically what they are in your ...
Mukul Kumar's user avatar
  • 2,725
553 votes
244 answers
141k views

Notes This thread is open and unlocked only because the community decided to make an exception. Please do not use this question as evidence that you can ask similar questions here. Please do not ...
93 votes
218 answers
25k views

Create the shortest program or function that finds the factorial of a non-negative integer. The factorial, represented with ! is defined as such $$n!:=\begin{...
Kevin Brown-Silva's user avatar
86 votes
229 answers
19k views

I'm honestly surprised that this hasn't been done already. If you can find an existing thread, by all means mark this as a duplicate or let me know. Input Your input is in the form of any positive ...
Gareth's user avatar
  • 1,309
61 votes
153 answers
7k views

In this challenge, the goal is to recreate the On-Line Encyclopedia of Integer Sequences one sequence at a time. Similar to the Evolution of Hello World, each answer depends on a previous answer. ...
PhiNotPi's user avatar
  • 29.3k
76 votes
61 answers
22k views

What general tips do you have for golfing in C#? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C# (e.g. "remove comments" is not an ...
jcolebrand's user avatar
  • 1,893
82 votes
53 answers
38k views

What general tips can you give for golfing in Ruby? I'm looking for ideas that can be applied to code golf problems in general that are specific to Ruby. (For example, "Remove comments" would not be ...
grokus's user avatar
  • 1,307
137 votes
29 answers
13k views

Stack Snippets were recently added to PPCG! Reminiscent of JSFiddle, Stack Snippets allow HTML, CSS, and JavaScript to be run directly in posts! Here is a very simple Stack Snippet: ...
Calvin's Hobbies's user avatar
59 votes
71 answers
12k views

Your Task: Write a program or function to check if a number that is inputted is a Fibonacci number. A Fibonacci number is a number contained in the Fibonacci sequence. The Fibonacci Sequence is ...
Gryphon's user avatar
  • 7,315
45 votes
72 answers
5k views

Definition Fibonacci sequence F(n), on the positive integers, are defined as such: ...
Leaky Nun's user avatar
  • 50.6k
49 votes
52 answers
12k views

Everyone knows the Fibonacci sequence: You take a square, attach an equal square to it, then repeatedly attach a square whose side length is equal to the largest side length of the resulting rectangle....
absoluteAquarian's user avatar

15 30 50 per page