This answer only adds more references and remarks, serving as a complement to the accepted answer of Steven Landsburg.
Rings are supposed to be associative and unital, but not necessarily commutative.
Definition 1. A ring $R$ has *Invariant Basis Number (IBN), if the following condition holds: if $R^m \simeq R^n, $ as $R$-modules for positive $m$ and $n$, then $m = n$.
It is well known that a non-trivial commutative ring has IBN and so has any left Noetherian ring [2, Theorem 1.3.9]. The ring $A(R)$ of column-finite matrices over a non-trivial ring $R$, with rows and columns indexed by $\mathbb{N}$, hasn't IBN [2, Example 1.37] and satisfies moreover $K_0(R) = 0$ [2, Exercise 3C.1].
W. G. Leawitt has classified the rings without IBN [1, 2]. The proof of this classification has been revisited by P. M. Cohn [3]. More on this below.
A positive answer to the original question follows immediately from this general fact:
[4, Proposition 4.5].
Let $R$ be a ring.
The map $n \mapsto n[R]$ from $\mathbb{Z}$ to $K_0(R)$ is injective if and only if $R$ has IBN.
The following definition helped Leawitt and Cohn classify rings without IBN.
Definition 2. A ring $R$ is said to be of type $(h, k)$ in the sense of P. M. Cohn, for some positive integers $h$ and $k$, if the following are equivalent:
- $R^m \simeq R^n$ as $R$-module with $m,n > 0$.
- Either $m = n$, or else $m, n \ge h$ and $m \equiv n \mod (k)$.
The next proposition is an easy exercise:
[4, Exercise 1C.2].
Let $R$ be a non-trivial ring. Then the following are equivalent:
- The ring $R$ hasn't IBN.
- The ring $R$ is of type $(h, k)$ for some positive integers $h$ and $k$.
Remark.
- A ring $R$ is of type $(1, 1)$ if and only if $R \simeq R^2$ as $R$-modules.
- The trivial ring and the ring $A(R)$ are both of type $(1, 1)$.
- A $R$ satisfies $K_0(R) = 0$ if and only if $R$ is of type $(h, 1)$ for some positive integer $h$; this follows from the above exercise and from Steven Landsburg's answers to Questions 1 and 2 (for the "only if" part, you may also check [4, Proposition 4.3]).
W. G. Leavitt has shown that rings of all types exist, by
proving $(a)$ rings of type $(h, 1)$ exist for all $h > 0$ [1] and $(b)$ rings of type $(1, k)$ exist for all
$k > 0$ [2] and by observing that if $R$ has type $(h, 1)$ and $S$ has type $(1, k)$ then the direct product
$R \times S$ has type $(h, k)$.
As already observed by Benjamin Steinberg and Steven Landsburg, the second question can be answered in the negative thanks to these constructions.
- [1] W. G. Leawitt, "Modules without invariant basis number", 1957.
- [2] W. G. Leawitt, "The module type of a ring", 1962.
- [3] P. M. Cohn, "Some remarks on the invariant basis property", 1966.
- [4] B. A. Magurn, "An algebraic introduction to $K$-theory", 2002.