public static void multiples(){
		long sum3 = 0, sum5 = 0, sum = 0;
		int i = 0, limit = 1000;
		while(i <= limit ){
			if(i % 3 == 0 )
				sum3 = sum3 + i;
			i++;
		}
		System.out.println("sum3: "+sum3);
		i = 0;
		while(i <= limit ){
			if(i % 5 == 0)
				sum5 = sum5 + i;
			i++;
		}
		System.out.println("sum5: "+sum5);
		System.out.println("sum35: "+(sum3 + sum5));
		
		i = 0;
		while(i <= limit ){
			if(i % 3 == 0 || i % 5 == 0)
				sum = sum + i;
			if(i % 3 == 0 && i % 5 == 0)
				System.out.println(i);
			i++;
			
		}
		System.out.println("sum: "+sum);
		
		sum3 = ap(3, 333, 3);
		System.out.println("sum3: "+sum3);
		sum5 = ap(5, 200, 5);
		System.out.println("sum5: "+sum5);
		System.out.println("sum35: "+(sum3 + sum5));
		
		sum = ap(3, 333, 3) + ap(5, 200, 5);
		System.out.println("sum: "+sum);
	}