fractalkitty looking for math? fractalkitty.com

Mathober 2026 ยท day 4, Linear Recurrence

Linear Recurrence

#trig#interactive#math#number-theory#mathober

lambda


let lambda = [0, 1, 2, 5, 12, 29, 70, 169, 408, 985, 2378, 5741, 13860, 33461, 80782, 195025, 470832, 1136689, 2744210, 6625109, 15994428, 38613965, 93222358, 225058681, 543339720, 1311738121, 3166815962, 7645370045, 18457556052, 44560482149, 107578520350, 259717522849]
let t = 0

function setup() {
	theSizeThatFits = min(windowWidth, windowHeight)*0.9
	theCanvasThatIsFilled=createCanvas(theSizeThatFits, theSizeThatFits);
	background(20,70,80);
	strokeWeight(0.5);
	describe("translucent teal circles that come from a vanishing point in the top center fast, then very slowly ")
	noStroke()
	noFill()
	

	
	
}
function draw() {
	if(t<1000){
	t+=0.001
	}else{
		noLoop()
	}
	background(20,70,80,10);
	translate(width/2,0)
	scale(t)
	
	for(let i = 0;i<lambda.length;i++){
		num1 = sqrt(lambda[i])
		fill(40+100*abs(sin(num1/1000)),100+100*abs(sin(num1/1000)),120+100*abs(sin(num1/1000)),100)
		arc(0,num1/2,num1/2,num1/2,0,2*PI)
	}
	
}
function keyPressed(){
	if(keyCode===83){
		save(theCanvasThatIsFilled,"recurrence","png")
	}
}