1
$\begingroup$

Given a integer n, e.g. n = 6, convert this to a binary list, ln = {1,1,0}.

$\endgroup$
2

1 Answer 1

4
$\begingroup$

Try IntegerDigits:

IntegerDigits[6, 2]
{1, 1, 0}
$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.