You haven’t specified size of n1. Make it <<n1 :: binary, ?_>> and it should do.
n1
<<n1 :: binary, ?_>>