//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>

#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

#include <stdexcept>

using namespace std;

//conversion
//------------------------------------------
inline int toint(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class t> inline string tostring(t x) { ostringstream sout; sout << x; return sout.str(); }

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl
#define debug(x) cerr << #x << " = " << (x) << " (l" << __line__ << ")" << " " << __file__ << endl

// type alias
using ll = long long;
using ull = unsigned long long;

// constant value
const ll mod = 1000000007ll;

template<class ll>
inline ll getCeilExponent(ll a)
{
	if (a <= 0)
	{
		throw invalid_argument("vaule equal to or less than 0 should not be valid");
	}

	ll index = 0;
	--a;
	for (; a != 0; a >>= 1)
	{
		++index;
	}
	return index;
}

template<class ll>
inline ll getFloorExponent(ll a)
{
	if (a <= 0)
	{
		throw invalid_argument("vaule equal to or less than 0 should not be valid");
	}

	ll index = 0;
	a >>= 1;
	for (; a != 0; a >>= 1)
	{
		++index;
	}
	return index;
}

// computational complexity: o(log(max(a, b))) 
template<class ll>
inline ll getGcd(ll a, ll b)
{
	if (b == 0)
	{
		return a;
	}
	return getGcd(b, a % b);
}

// computational complexity: o(log(max(a, b))) 
template<class ll>
inline pair<ll, ll> getBezoutsIdentitySolution(ll a, ll b)
{
	if (b == 0)
	{
		return { 1, 0 };
	}
	auto sol = getBezoutsIdentitySolution(b, a % b);
	return { sol.second, sol.first - (a / b) * sol.second };
}

inline ll getModValue(ll a, ll m)
{
	return (a % m + m) % m;
}

// computational complexity: o(log(max(a, n))) 
inline ll getModInverse(ll a, ll m)
{
	auto sol = getBezoutsIdentitySolution(a, m);
	if (a * sol.first + m * sol.second != 1)
	{
		return -1;
	}
	return getModValue(sol.first, m);
}

ll getModCombinatorialNumber(ll n, ll r, ll m)
{
	if (n < 0LL || r < 0LL || n < r)
	{
		return 0LL;
	}

	ll res = 1;
	for (; r > 0; --n, --r)
	{
		res = getModValue(getModValue(res * n, m) * getModInverse(r, m), m);
	}
	return res;
}

ll getModPower(ll base, unsigned t, ll m)
{
	if (t == 0)
	{
		return 1ll;
	}

	auto res = getModPower(base, t >> 1, m);
	res = getModValue(res * res, m);
	if (t % 2 == 1)
	{
		res = getModValue(res * base, m);
	}
	return res;
}

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	ll n;
	cin >> n;

	ll a, dup1st, dup2nd;
	map<ll, ll> valToPos;
	for (ll i = 0; i < n + 1; ++i)
	{
		cin >> a;
		auto iter = valToPos.find(a);
		if (iter != valToPos.end())
		{
			dup1st = iter->second;
			dup2nd = i;
		}
		valToPos.insert(make_pair(a, i));
	}

	ll edgeCount = n - dup2nd + dup1st;
	ll comb1st, comb2nd, comb3rd, comb4th, res;
	comb1st = n - 1LL;
	comb3rd = 1LL;	
	cout << comb1st + comb3rd << endl;

	comb1st = getModValue(getModValue(comb1st * (n - 2LL), mod) * getModInverse(2LL, mod), mod);
	comb2nd = 1LL;
	comb3rd = n - 1LL;
	comb4th = edgeCount;
	res = getModValue(
		getModValue(
			getModValue(comb1st + comb2nd, mod) +
			getModValue(comb3rd * 2LL, mod),
			mod) - comb4th,
		mod);
	cout << res << endl;
	for (ll i = 3; i <= n + 1; ++i)
	{
		comb1st = getModValue(getModValue(comb1st * (n - i), mod) * getModInverse(i, mod), mod); 
		comb2nd = getModValue(getModValue(comb2nd * (n + 2LL - i), mod) * getModInverse(i - 2LL, mod), mod);
		comb3rd = getModValue(getModValue(comb3rd * (n + 1LL - i), mod) * getModInverse(i - 1LL, mod), mod);
		comb4th = getModValue(getModValue(comb4th * (edgeCount + 2LL - i), mod) * getModInverse(i - 1LL, mod), mod);
		res = getModValue(
			getModValue(
				getModValue(comb1st + comb2nd, mod) +
				getModValue(comb3rd * 2LL, mod),
			mod) - comb4th,
		mod);

		cout << res << endl;
	}

	return 0;
}

Measured memory_bytes: 7424