# fibonacci's questions - English 1answer

82 fibonacci questions.

### 16 Find the Fibonacci Patterns

11 answers, 1.708 views code-golf fibonacci
You are probably familiar with the Fibonacci sequence where the first two terms are 0, 1 (or sometimes 1, 1) and every term after that is the sum of the previous two. It starts like this: 0, 1, 1, 2, ...

### 25 Golf a Custom Fibonacci Sequence

42 answers, 3.137 views code-golf number sequence fibonacci
The Fibonacci sequence is a fairly well known thing around here. Heck, it even has its own tag. However, for all that, we sure like to stick to our roots of 1, 1, ... (or is it 0, 1, ...? We may never ...

### 100 Fibonacci function or sequence

196 answers, 20.045 views code-golf number sequence fibonacci
The Fibonacci sequence is a sequence of numbers, where every number in the sequence is the sum of the two numbers preceding it. The first two numbers in the sequence are both 1. Here are the first ...

### 15 Sum my Fibonaccified divisors!

19 answers, 1.136 views code-golf number-theory fibonacci division
The famous Fibonacci sequence is F(0) = 0; F(1) = 1; F(N+1) = F(N) + F(N-1) (for this challenge we are beginning with 0). Your challenge: Given n, output the sum of all the dth Fibonacci numbers for ...

### 31 Binary Fibonacci

32 answers, 3.705 views code-golf binary fibonacci
Challenge You need to generate a program or function that takes in a positive integer N, calculates the first N terms of the Fibonacci sequence in binary, concatenates it into a single binary number, ...

### 44 Extreme Fibonacci

There have been a billion iterations of Fibonacci challenges on this website, so lets spice things up with a Fibonacci challenge of a billion iterations! Your challenge is to output the first 1000 ...

### 2 Number sum medley

4 answers, 231 views code-golf number fibonacci
Winner CJam, 74 bytes by Optimizer Task Take an input of an integer n through the console or a file. Find the sum of the nth prime, square, triangular number, and cube. Add to that the factorial of ...

### 5 Reciprocal Fibonacci constant

13 answers, 1.088 views code-golf math fibonacci
Seeing as there have been an awful lot of normal Fibonacci challenges, I decided that it might be interesting to calculate the Reciprocal Fibonacci constant - namely, the sum of the reciprocals of the ...

### 9 Generate valid Fibonacci tilings

3 answers, 789 views code-golf fibonacci tiling
Background The Fibonacci tiling is a tiling of the (1D) line using two segments: a short one, S, and a long one, L (their length ratio is the golden ratio, but that's not relevant to this challenge). ...

### 9 Display powers of Phi with Fibonacci precision

2 answers, 172 views code-golf fibonacci
Write some code that takes a single non-negative integer n and outputs the nth power of Phi (ϕ, the Golden Ratio, approximately 1.61803398874989) with the same number of decimal digits as the nth ...

(Inspired by ASCII's 95 Characters...95 Movie Quotes) The Challenge Given input n, output the nth Fibonacci number. You can use either 0 or 1 indexing, please state which in your submission. ...

### 21 Fibonacci Factorization

10 answers, 1.138 views code-golf number-theory fibonacci
Fibonacci Numbers Fibonacci Numbers start with f(1) = 1 and f(2) = 1 (some includes f(0) = 0 but this is irrelevant to this challenge. Then, for n > 2, f(n) = f(n-1) + f(n-2). The challenge Your ...

### 25 Find the closest Fibonacci Number

29 answers, 4.518 views code-golf number fibonacci
We are all familiar with the famous Fibonacci sequence, that starts with 0 and 1, and each element is the sum of the previous two. Here are the first few terms (OEIS A000045): 0, 1, 1, 2, 3, 5, 8, 13,...

### -4 Find prime factors of sum of non-composite Fibonacci numbers up to n

1 answers, 116 views code-golf number-theory primes fibonacci
The Challenge Given a number, find the sum of the non-composite numbers in the Fibonacci sequence up to that number, and find the prime factors of the sum. For example, if you were given 8, the non-...

### 34 Am I a Fibonacci Number?

55 answers, 8.032 views code-golf sequence decision-problem fibonacci
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 ...

### 36 Fibonacci-orial

56 answers, 3.223 views code-golf math sequence arithmetic fibonacci
Definition Fibonacci sequence F(n), on the positive integers, are defined as such: 1. F(1) = 1 2. F(2) = 1 3. F(n) = F(n-1) + F(n-2), where n is an integer and n > 2 The Fibonacci-orial of a ...

### 5 Recamán's triangular fibonacci

3 answers, 559 views code-golf number sequence fibonacci
This challenge is based upon three sequences, below are their formulae: Recamán's sequence: a1 = 0; for n > 0, an = an-1 - n if positive and not already in the sequence, otherwise ...

### 72 Fibonacci + Fizz Buzz = Fibo Nacci!

Fibonacci + FizzBuzz = Fibo Nacci! Your challenge is to create a Fibo Nacci program! A Fibo Nacci program outputs the first 100 Fibonacci numbers (starting from 1). If the Fibonacci number is ...

### 20 Find the Missing Numbers in the Fibonacci Sequence Mod K

Inspired by this Math.SE question. Background The Fibonacci Sequence (called F) is the sequence, starting 0, 1 such that each number (F(n)) (after the first two) is the sum of the two before it (F(n)...

### 25 Fibonacci-style matrix expansion

14 answers, 1.372 views code-golf fibonacci matrix
For each row and then column of a matrix, we can add an extra entry with the sum of the last two entries in that row or column. For example with the following input matrix: [ 1 1 1 ] [ 2 3 4 ] The ...

### 8 code-golf: First-n Fibonacci sequence elements

28 answers, 3.419 views code-golf fibonacci
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 ...

### 20 Linear interpolation of the Fibonacci sequence

11 answers, 780 views code-golf math sequence arithmetic fibonacci
Your task is to find the nth Fibonacci number, but n is not necessarily an integer. The Fibonacci sequence, 0-indexed, goes as follows: 0, 1, 2, 3, 4, 5, 6, 7, ... 1, 1, 2, 3, 5, 8, 13, 21, ... ...

### 22 Print the nth Fibonacci number containing the nth Fibonacci number!

14 answers, 2.373 views code-golf math number fibonacci
Challenge You must write a program that takes a positive integer n as input, and outputs the nth Fibonacci number (shortened as Fib# throughout) that contains the nth Fib# as a subtring. For the ...

### 15 Permanently self-modifying code

13 answers, 1.036 views code-golf parsing fibonacci stateful
Now, we all know most languages have very simple ways to "self-modify" code. However, what if you were to actually modify the code and edit parts of it...on disk? Your goal is to make code that ...

### 12 FIBonacci sequence

20 answers, 1.893 views code-golf number fibonacci
For this code golf, you will receive an input of a fibonacci sequence, that is, a normal Fibonacci sequence but with one number incorrect. See, the sequence is fibbing! Get it? :D Your job is to find ...

### 22 The lowest initial numbers in a Fibonacci-like sequence

10 answers, 2.105 views code-golf number sequence fibonacci
Given a positive integer input N, output the two non-negative numbers, a and b, where a < b, with the lowest possible mean value that will result in the number N being part of the recurring ...

### 21 Hello world!!! Fibonacci distribution

Your program should output exactly: Hello world!!! with or without linefeed after. Your program should take no input. Sourcecode character distribution must be correct according to: The number of ...

### 13 Counting Fibonacci Orbits

If we define a Fibonacci-like sequence as fk(n) = (fk(n-1) + fk(n-2)) % k, for some integer k (where % is the modulo operator), the sequence will necessarily be cyclic, because there are only k2 ...

### 46 Print the N-bonacci sequence

24 answers, 4.333 views code-golf math fibonacci
This isn't very widely known, but what we call the Fibonacci sequence, AKA 1, 1, 2, 3, 5, 8, 13, 21, 34... is actually called the Duonacci sequence. This is because to get the next number, you sum ...

### 4 Implement the Fibonacci sequence… Shifted to the right [duplicate]

4 answers, 221 views code-golf number sequence fibonacci
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 1. The first few elements are: 0, 1, 1, 2, ...

### 18 When Fibonacci meets the Queens

3 answers, 402 views code-golf chess fibonacci
(inspired by Helka's response to my random pairing of "chess" and "Fibonacci" tags in chat) Fibonacci The Fibonacci numbers are one of the more well-known sequences in mathematics, where each number ...

### 8 Reverse Fibonacci

14 answers, 653 views code-golf fibonacci subsequence
Your task You must write a program, to print a reverse Fibonacci series, given a number. Input A non-negative integer N. Output You must output all the Fibonacci numbers from Fk to F0, where k is ...

### 20 Within Fibonacci Numbers

21 answers, 1.387 views code-golf fibonacci
The Challenge Given an integer input, return the first Fibonacci number that contains the input within itself along with the index of that Fibonacci number (indexes starting at 0 or 1 - up to you, ...

### 30 Fibtraction - Fibonacci but with subtraction [duplicate]

36 answers, 4.340 views code-golf number sequence fibonacci
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: 1, 2, -1, 3, -4, 7, -...

### 34 Trump needs your help to stop the Starman!

20 answers, 3.161 views code-golf sequence fibonacci
A man from the stars has come to Earth! Luckily the president of the United States, Donald Trump, has an infinity-sided die. Using this die, he can conjure up a number which you, the mayor of Podunk, ...

### 18 Arithmetic mean of prime Fibonacci Numbers up to the x Fibonacci Number

17 answers, 1.544 views code-golf math sequence arithmetic fibonacci
You should have heard about the Fibonacci Numbers, often called the Fibonacci Sequence. In this sequence the first two terms are 0 and 1, and every number after the first two is the sum of the two ...

### 18 Find the Pisano Period

9 answers, 5.755 views code-golf math number fibonacci
The Fibonacci sequence is a well know sequence in which each entry is the sum of the previous two and the first two entries are 1. If we take the modulo of each term by a constant the sequence will ...

### 22 Divinacci Sequence

Divinacci (OEIS) Perform the Fibonacci sequence but instead of using: f(n) = f(n-1)+f(n-2) Use: f(n) = sum(divisors(f(n-1))) + sum(divisors(f(n-2))) For an input of n, output the nth term, your ...

### 11 Am I a Special N-bonacci Number?

10 answers, 969 views code-golf decision-problem fibonacci
The N-bonacci sequence, originally invented by @DJMcMayhem in this question, is a sequence generated by starting with the integers 0 and 1, and then adding the previous N numbers to generate the next ...

### 40 Fibonacci reversed!

34 answers, 9.876 views code-golf math sequence fibonacci
Introduction We all know and love our Fibonacci sequence and have seen a myriad of challenge on it here already. However, we're still lacking a very simple case which this answer is going to provide: ...

### 22 Output the Iccanobif Sequence

18 answers, 1.659 views code-golf number sequence fibonacci
Write a program or named function that will output or return the sequence up to the nth integer in the Iccanobif sequence, documented on OEIS as A014258. Note that only the zeroth element in the ...

### 4 Sum of Fibonacci numbers

3 answers, 693 views code-golf math integer fibonacci
I found this task here. Given the ith (1<=i<=35) Fibonacci number F(i) calculate the sum of the ith till i+9th number F(i)+F(i+1)+...+F(i+9) and the last digit of the i+246th one F(i+...

### -4 Generate and print the first 20 Fibonacci numbers with the least unique characters

As the title suggests, my task is fairly straightforward: Write a program in your language of choice that will print out the first 20 Fibonacci numbers using the least unique characters. For example ...

### 30 Digital Sum Fibonacci

26 answers, 2.440 views code-golf sequence fibonacci
We are all familiar with the Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765 However, instead of, f(n) = f(n-1) + f(n-2) we'll be taking ...

### 14 Implement the Fibonacci-quine

13 answers, 1.750 views code-golf sequence quine fibonacci
A Quine is a program which outputs its source when run. In this challenge, You should make a Fibonacci-quine, a variant of the quine. What is a Fibonacci-quine? A Fibonacci-quine is a program, ...

### 12 Fibonacci Exponents

18 answers, 571 views code-golf math fibonacci
For this challenge, you are to output the result of the sum of some numbers. What are these numbers? Well, you are given input, (a, b), which are integers (positive, negative, or zero) , a != b, and a ...

### 14 Counter-Fibonacci Sequences

20 answers, 2.181 views code-golf math number sequence fibonacci
Given three numbers m,n and p, your task is to print a list/array of length p starting with m and n and each element after p represents the difference of the 2 numbers before it, m-n (Counter-...

### 23 Find the Fibonacci Kernel

1 answers, 605 views code-golf number sequence fibonacci
You've probably heard of the Fibonacci numbers; they're pretty famous. Each number in the Fibonacci sequence is the sum of the last two in the sequence with the first and second numbers being 1. The ...

### 7 Parity of Nth Term in Fibonacci Integer Sequences

11 answers, 502 views code-golf math sequence fibonacci
If you look at the Fibonacci Numbers, you will notice a pattern in their parity: 0, 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , 144. Every third number is even, and all the others are odd. This ...

### 24 Alternating Power Fibonacci Sequence

Definition The Alternating Power Fibonacci Sequence is formed as follows. Start with the empty sequence and set n to 1. Compute fn, the nth non-negative Fibonacci number, with repetitions. 0 is the ...