Counting from 1 to n without any consecutive numbers – codegolf.stackexchange.com

Goal You are given an integer n (n > 1). You need to count from 1 to n without any consecutive numbers. Your program must output how many combinations can achieve this. We will call f(n) the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Counting from 1 to n without any consecutive numbers – codegolf.stackexchange.com"