44
6
"The Nobel Prize in mathematics was awarded to a California professor who has discovered a new number! The number is bleen, which he claims belongs between 6 and 7." --George Carlin
In this challenge, you will print all Integers, inclusive, within the given input range. Print numbers ascending or descending according to their input order. That is, for input [n1, n2]
, print ascending if n1 < n2
, descending if n1 > n2
.
Since bleen
is now an Integer number it may be used as input. It must also be included in the output, between 6
and 7
where applicable. Also note that -bleen
exists between -7 and -6.
Input
Two Integers [n1, n2]
in the range [-10, 10], inclusive, via your programming language's input of choice.
(Input may also contain bleen
and -bleen
!)
Output
Print all Integers starting at n1
and ending with n2
, including the newly discovered bleen
between 6 and 7. Output can be a range of character separated numbers in some form your language supports - that is, comma or space separated. One trailing space of output is okay.
Examples
Input: 1 10
Output: 1 2 3 4 5 6 bleen 7 8 9 10
Input: -9 -4
Output: -9 -8 -7 -bleen -6 -5 -4
Input: -8 bleen
Output: -8 -7 -bleen -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 bleen
Input: 9 1
Output: 9 8 7 bleen 6 5 4 3 2 1
Input: 2 -bleen
Output: 2 1 0 -1 -2 -3 -4 -5 -6 -bleen
Input: -bleen 0
Output: -bleen -6 -5 -4 -3 -2 -1 0
Input: bleen bleen
Output: bleen
Input: 2 2
Output: 2
Additional notes
You may write a program or function and use any standard method of receiving input and providing output.
You may use any programming language, but standard loopholes are not allowed.
This is code-golf, so the shortest valid answer – measured in bytes – wins.
Can output be prefixed and postfixed, i.e.
[1 2 3 4 5 6]
? – Leaky Nun – 2016-08-03T17:37:55.513@LeakyNun Sure! – CzarMatt – 2016-08-03T17:38:36.513
16Is bleenteen between 16 and 17 also? (and is bleenty-bleen between bleenty-six and bleenty-seven?) – Joffan – 2016-08-03T18:07:55.510
5@Joffan ... and bleenty between 60 and 70? – Adám – 2016-08-03T18:08:35.750
@Adám - exactly, and so on... – Joffan – 2016-08-03T18:09:53.423
5@Joffan How much is (bleen + 7) / 2 ? – Adám – 2016-08-03T18:10:35.877
1@Adám it is just possible that we are overthinking this :-) – Joffan – 2016-08-03T18:11:48.367
3
According to #2 here, this is perfectly possible in a notation of base eleven, where 6₁₁ = 6₁₀, bleen₁₁ = 7₁₀, 7₁₁ = 8₁₀, 8₁₁ = 9₁₀, 9₁₁ = 10₁₀, 10₁₁ = 11₁₀.
– Adám – 2016-08-03T18:15:01.673(bleen₁₁ + 7₁₁) / 2 = bleen.555…₁₁ = 7.5₁₀ – Adám – 2016-08-03T18:22:06.080
Newline separators are not allowed? – Value Ink – 2016-08-03T19:17:52.497
10In mathematics there is only the Field's medal, no Nobel Prizes there.... – Graipher – 2016-08-04T07:48:09.000
8@Graipher That's why you shouldn't rely on a comedian's standup bit as hard news ;) – Geobits – 2016-08-04T09:45:17.190
3@Geobits Wait, this new number is not real? But I just modified all the code I ever wrote to be in base 11... – Graipher – 2016-08-04T09:48:38.787
1@Graipher I never said it wasn't real. The part about the Nobel Prize probably wasn't though. Keep your modified code as-is :P – Geobits – 2016-08-04T09:51:20.487
1@Graipher: the Abel prize is a slightly closer analogue to the Nobel prize. – Steve Jessop – 2016-08-04T10:45:09.557
Was hoping for a bigger skit or context for Carlin and bleen. Here it is https://youtu.be/YHFLTb9Fp18?t=4m35s
– goodguys_activate – 2016-08-04T13:18:42.1604
So apparently Derf isn't the only newly established number... 1, 2, 3, 4, 5, derf, 6, bleen, 7, 8, 9, 10
– Patrick Roberts – 2016-08-05T00:30:22.787@PatrickRoberts There's also Gird between three and four: 1, 2, 3, gird, 4, 5, derf, 6, bleen, 7, 8, 9, 10
– Steadybox – 2017-06-15T20:13:43.290