Mining, hashes and the cryptography puzzle

Bitcoin mining uses the hashcash proof of work function; the hashcash algorithm requires the following parameters: a service string, a nonce, and a counter.

See for example Example: Bitcoin http://bit.ly/2PXIpYR.

and Example: Litecoin http://bit.ly/2oCpdTZ.

(more later)