Thousands of tools! Check out Online Tools – I have now added thousands of tools.
I often have to generate Lucas numbers so I created this simple online utility that does it for me. It lets you generate however many Lucas numbers you need starting from any position or value. It works in the browser and is powered by alien technology from the future.
Lucas Number Generator Options
Lucas Number Generator Examples (click to try!)
322 521 843 1364 2207 3571 5778 9349 15127 24476
18; 29; 47; 76; 123; 199; 322; 521; 843; 1364; 2207; 3571; 5778; 9349; 15127; 24476; 39603; 64079; 103682; 167761; 271443; 439204; 710647; 1149851; 1860498; 3010349; 4870847; 7881196; 12752043; 20633239
2af030e8455b8bb1c7 4579bd1cc61bb9b84b 7069ee050b77456a12 b5e3ab21d192ff225d 1264d9926dd0a448c6f 1dc314448ae9d43aecc 3027edd6f8ba7883b3b 4deb021b83a44cbea07 7e12eff27c5ec542542 cbfdf20e00031200f49 14a10e2007c61d74348b 2160ed40e7c64e9443d4 3601fb60ef8c6c08785f 5762e8a1d752ba9cbc33 8d64e402c6df26a53492 e4c7cca49e31e141f0c5 1722cb0a7651107e72557 256f47d4c0342e929161c 3c9212df36853f1103b73 62015ab3f6b96da39518f
How Does This Lucas Number Generator Work?
This Lucas number generator works entirely in your browser and is written in JavaScript. It starts the sequence by creating two variables lucasPrev
and lucasCurrent
, and initializing them to 2
and 1
, which are the first two Lucas numbers. It also creates an empty terms
array that will hold the computed Lucas numbers. Each next Lucas number is calculated as a sum of lucasPrev
and lucasCurrent
. To generate count
terms (specified in options), it creates a while()
loop that keeps adding the last two Lucas values together until it finds the start
position or value (specified in options). At this moment it starts terms.push()
ing the Lucas numbers to the terms
array. The while()
loop keeps doing this until terms.length
is less than count
(sequence length; specified in options). When terms.length
reaches count
, the loop breaks and it runs base conversion code on the terms
array and calls the terms.join(separator)
function that joins all Lucas numbers by the separator
character. This function returns a string that is then printed to your screen.
Created by Browserling
This lucas number generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.