previndexinfo

code guessing, round #105, stage 1 (writing)

started at . submit by

specification

need to go to bed let's get this over with. decompose a numberoid. submissions may be written in any language.

you can break numbers, or things like numbers such as matrices, into other numbers. like when you factor an integer, which is a kind of decomposition into prime factors. or breaking an integer into sums of powers (301.5 = 3⋅10² + 0⋅10¹ + 1⋅10⁰ + 5⋅10⁻¹). what makes it decomposition is that at the end you get an equality, and you can compute the original number from the decomposition. I feel like the point is normally to represent the value in terms of a simpler, smaller set, like how you decompose all integers into only primes, or all numbers into only powers of a given base. I guess that's the point behind this problem.

anything invertible is permitted, though, so you could submit an identity function for all I care. that doesn't really feel like decomposition, though. it feels like you left it just as composed as it was... so maybe it's not in the spirit of things.

your challenge, given a number or whatever you want really, is to decompose it such that the original value can be reconstructed from the result. as any language is allowed, there is no fixed API.

it's 40 minutes past my bedtime man never procrastinate

entries

2 entries have been received so far.

submit