# Tag Info

1 vote

1 vote

### Find number components with lowest distribution

Python, 53 bytes lambda x,n,b:[y:=b>=(y:=-(-x//n))and y]*~-n+[~-x%y+1] Attempt This Online! Port of my JS answer (which is a port of Jonathan Allan's Jelly answer). Errors for no possible solution.

### Find number components with lowest distribution

Jelly,  16 10  9 bytes ÷Ċ¬>¡⁵⁸sẈ A full program that accepts X N B and prints a list or errors if no solution is possible. ...
1 vote

### Find number components with lowest distribution

JavaScript (Node.js), 61 bytes (x,n,b)=>(a=[...Array(--n).fill(y=(x+n)/-~n|0),x-n*y],y>b||a) Attempt This Online! Similar to Jonathan Allan's answer.
1 vote

### Find number components with lowest distribution

Vyxal R, 22 12 9 bytes /⌈~≥[¹ẇvL Try it Online! -10 bytes by porting Jonathan Allan's answer Outputs a positive integer for no ...
1 vote

### Cryptic Multiplications

Charcoal, 36 bytes ＦＸχＬθＦＥＸχＬη⪫⟦ικ×ικ⟧¶⊞υＥκ⌕κλＩ№υ§υＩ⁺θη Try it online! Link is to verbose version of code. Explanation: ＦＸχＬθ ...
1 vote

### Shifted auto-sum

ECMAScript 2016, 73 bytes n=>Array(String(n).length).fill(n).map((a,b)=>a*10**b).reduce((a,b)=>a+b)

### Shifted auto-sum

Desmos, 29 bytes f(k)=∑_{n=0}^{logk-.5}10^nk Try It On Desmos! Using the formula $$n\cdot\frac{10^{length(n)}-1}9$$ is surprisingly 1 byte longer: ...

### Shifted auto-sum

Bash, 19 bytes expr ${1//?/1} *$1 An unusual example of expr being shorter than regular ...

### Shifted auto-sum

BQN, 15 bytes 10⊸×⊸+˜´⊢⊣¨•Fmt Try it at BQN online! Explanation ...

### Shifted auto-sum

Brachylog, 5 bytes lᵐ×↙? Try it online! ...

### Shifted auto-sum

dc, 10 ?dZAr^9/*p Try it online! Explanation ...

### Shifted auto-sum

Pip, 7 bytes a*:1X#a Try it online! Explanation Port of Bubbler's string-based Japt answer: ...

### Shifted auto-sum

Vyxal r, 4 bytes Lẋ₀β Try it Online! Another approach. Vyxal s, 3 bytes ...