Distinct strict partition counts
code-golfmathnumber-theoryinteger-partitions
Related
The Task
Write a function or program that, given a positive integer n, returns or prints an array (or list, set, etc.) of length l such that each index i contains the count of distinct partitions of size i...
Challenge
Weirdly, this hasn't been done yet: output the current date in ISO-8601 format.
Rules
ISO-8601 date format is as follows:
YYYY-MM-DD
Where the month and day should be padded by zeroes if they are less than 10.
For example, if the program is run on the 24th May 2017, it should out...
Klein is a 2D language I have designed that can be embedded on 12 different topological surfaces. A Klein program can be run on different surfaces by changing the command line arguments. Here is a chart showing all of the surfaces based on their arguments.
Task
The task is pretty simple, wr...
This is still a work in progress, I need to add test cases, though feel free to leave initial feedback.
Rate my sorting
Introduction
So my boss is making me do some manual labor...urgh...I have to take a part out a box of parts, process it and put it back in the box of parts. To make this mo...
@Mego Should I require people to handle other characters in the source code?
Anonymous
@PhiNotPi I think so
Anonymous
Also an optional trailing newline should be acceptable, for the languages that can't suppress them (and the languages where suppressing them is difficult to the point that it detracts from the challenge)
Inspired by: Find an Unrelated Number
Challenge
Given two positive integers as input, output the mathematical operations that can be used on those inputs to generate every number from 1 to n inclusive where n is the smallest prime greater than the sum of the two inputs. If the number cannot b...
Related to: Make a ;# interpreter and Generate #; code
;# - A Whirlwind Guide
This is a simple language with two commands. Its only data structure is an accumulator, which is initialized to 0.
; Increment the accumulator
# Calculate the value of the accumulator modulo 127, and print the corr...
Hope this is the right forum for this question.
Given a short list of numbers, let's say in the range 0-4095 and a maximum length of 50, e.g.
0,4,5,21,27,38,39,40,41,42,43,44,100,101,1002,1035,2004,2049,2076,2080,2088,2089,2090,2096,2204,2210,2219,2220,2486,2496,2497,2498,2517,2518,2519,2535,25...